DllImportResolver DllImportResolver DllImportResolver DllImportResolver Delegate

Definizione

Specifica un delegato usato per risolvere le librerie native tramite callback.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 

Parametri

libraryName
String String String String

Libreria nativa da risolvere.The native library to resolve.

assembly
Assembly Assembly Assembly Assembly

Assembly che richiede la risoluzione.The assembly requesting the resolution.

searchPath
Nullable<DllImportSearchPath>

Eventuale DefaultDllImportSearchPathsAttribute nel PInvoke.The DefaultDllImportSearchPathsAttribute on the PInvoke, if any. In caso contrario, eventuale DefaultDllImportSearchPathsAttribute nell'assembly.Otherwise, the DefaultDllImportSearchPathsAttribute on the assembly, if any. In caso contrario, null.Otherwise null.

Valore restituito

System.IntPtr

Handle per la libreria nativa caricata in caso di esito positivo o Zero in caso di esito negativo.The handle for the loaded native library on success, or Zero on failure.

Ereditarietà
DllImportResolverDllImportResolverDllImportResolverDllImportResolver

Metodi di estensione

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

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.Gets an object that represents the method represented by the specified delegate.

Si applica a