DllImportResolver DllImportResolver DllImportResolver DllImportResolver Delegate

Definition

Provides a delegate used to resolve native libraries via callback.

public delegate IntPtr DllImportResolver(System::String ^ libraryName, Assembly ^ assembly, Nullable<DllImportSearchPath> searchPath);
public delegate IntPtr DllImportResolver(string libraryName, Assembly assembly, Nullable<DllImportSearchPath> searchPath);
type DllImportResolver = delegate of string * Assembly * Nullable<DllImportSearchPath> -> nativeint
Public Delegate Function DllImportResolver(libraryName As String, assembly As Assembly, searchPath As Nullable(Of DllImportSearchPath)) As IntPtr 

Parameters

libraryName
String String String String

The native library to resolve.

assembly
Assembly Assembly Assembly Assembly

The assembly requesting the resolution.

searchPath
Nullable<DllImportSearchPath>

The DefaultDllImportSearchPathsAttribute on the PInvoke, if any. Otherwise, the DefaultDllImportSearchPathsAttribute on the assembly, if any. Otherwise null.

Return Value

System.IntPtr

The handle for the loaded native library on success, or Zero on failure.

Inheritance
DllImportResolverDllImportResolverDllImportResolverDllImportResolver

Extension Methods

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to