Unmanaged |
The UnmanagedLibraryResolver type exposes the following members.
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ResolveLibraryPath |
Given a library name, this function attempts to resolve the file path from which it can be loaded. Each step of the search strategy uses the fallback
library names if the given name was not found in the current step. If the search is unsuccessfully, the library name is returned which means the OS will try
and do its own search strategy when attempting to load the library (this is dependent on the OS). The search strategy is the following, in order of execution:
The search strategy gives priority to user-specified probing paths, then local paths to the application, then finally examining the global nuget cache. The RID is the Runtime Identifier based on the platform/architecture, see also Microsoft's RID Catalog. | |
| SetFallbackLibraryNames | Sets the collection of fallback library names (e.g. versioned libs) for both 32-bit and 64-bit probing. | |
| SetFallbackLibraryNames32 | Sets the collection of fallback library names (e.g. versioned libs) for 32-bit probing. | |
| SetFallbackLibraryNames64 | Sets the collection of fallback library names (e.g. versioned libs) for 64-bit probing. | |
| SetOverrideLibraryName | Sets an override 32-bit and 64-bit library name. By default, the UnmanagedLibrary implementations creates a default name for the library, which is passed into ResolveLibraryPath(String) for resolving. If the override is non-null, it will be used instead. This is useful if the library to be loaded is not conforming to the platform's default prefix/extension scheme (e.g. libXYZ.so on linux where "lib" is the prefix and ".so" the extension). | |
| SetOverrideLibraryName32 | Sets an override 32-bit library name. By default, the UnmanagedLibrary implementations creates a default name for the library, which is passed into ResolveLibraryPath(String) for resolving. If the override is non-null, it will be used instead. This is useful if the library to be loaded is not conforming to the platform's default prefix/extension scheme (e.g. libXYZ.so on linux where "lib" is the prefix and ".so" the extension). | |
| SetOverrideLibraryName64 | Sets an override 64-bit library name. By default, the UnmanagedLibrary implementations creates a default name for the library, which is passed into ResolveLibraryPath(String) for resolving. If the override is non-null, it will be used instead. This is useful if the library to be loaded is not conforming to the platform's default prefix/extension scheme (e.g. libXYZ.so on linux where "lib" is the prefix and ".so" the extension). | |
| SetProbingPaths | Sets the collection of file paths to probe for both 32-bit and 64-bit libraries. These paths always are first to be searched, in the order that they are given. | |
| SetProbingPaths32 | Sets the collection of file paths to probe for 32-bit libraries. These paths always are first to be searched, in the order that they are given. | |
| SetProbingPaths64 | Sets the collection of file paths to probe for 64-bit libraries. These paths always are first to be searched, in the order that they are given. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |