这个对象可以枚举出所有已经安装的Package对象
PackageManager
01 Syntax
SMRUCC.Rsharp.Development.Package.PackageManager
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| hasLibFile | 1 | Check if the given dll module libraryFileName is exists in database or not. |
| hasLibPackage | 1 | check if a required zip package is installed or not? |
| GetPackageDocuments | 1 | Handling the document reading for the CLR module which has been registered inside the local package repository |
| FindPackage | 1 | Find a dll module package |
| InstallLocals | 2 | Install a compiled zip package file |
| installZip | 1 | |
| installDll | 1 | |
| Flush | 1 | 将程序包数据库更新到硬盘文件之上 |
| GenericEnumerator | 1 | 从LocalPackageDatabase.assemblies中枚举出所有的PackageLoaderEntry |
| getEmpty | 1 | |
| addAttached | 1 | |
| EnumerateAttachedPackages | 1 | |
| getPackageDir | 1 | |
| Dispose | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| packageDocs | 1 | |
| loadedPackages | 1 | |
| packageRepository | 1 |
04 Members
hasLibFile(
String)Check if the given dll module libraryFileName is exists in database or not.
Parameters
| Name | Type | Description |
|---|---|---|
libraryFileName | String | - |
hasLibPackage(
String)check if a required zip package is installed or not?
Parameters
| Name | Type | Description |
|---|---|---|
pkgName | String | - |
GetPackageDocuments(
String, Boolean)Handling the document reading for the CLR module which has been registered inside the local package repository
Parameters
| Name | Type | Description |
|---|---|---|
pkgName | String | - |
remarks | Boolean | get the remarks text? |
Find a dll module package
Parameters
| Name | Type | Description |
|---|---|---|
packageName | String | - |
exception | GlobalEnvironment | - |
Returns
If the package is not exists or load package failure then this function returns nothing
InstallLocals(
String, Exception)在调用了这个函数进行包模块的安装之后,需要调用PackageManager.Flush()函数更新数据库才可以完成安装
Parameters
| Name | Type | Description |
|---|---|---|
pkgFile | String | - |
InstallLocals(
Stream, Exception)Install a compiled zip package file
Parameters
| Name | Type | Description |
|---|---|---|
zip_stream | Stream | - |
err | Exception | - |
installZip(
Stream, String, Exception)Parameters
| Name | Type | Description |
|---|---|---|
zipFile | Stream | a stream of the package zip file |
Returns
returns the symbol names in target zip package file.
installDll(
String)Parameters
| Name | Type | Description |
|---|---|---|
dllFile | String | - |
Returns
returns module names in target dll assembly file
Flush
将程序包数据库更新到硬盘文件之上
GenericEnumerator
packageDocs
loadedPackages
packageRepository
getEmpty(Options)
addAttached(Package)
EnumerateAttachedPackages()
getPackageDir(
String)Dispose()