/
DllImportResolver.xml
44 lines (42 loc) · 2.86 KB
/
DllImportResolver.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Type Name="DllImportResolver" FullName="System.Runtime.InteropServices.DllImportResolver">
<TypeSignature Language="C#" Value="public delegate IntPtr DllImportResolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed DllImportResolver extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Runtime.InteropServices.DllImportResolver" />
<TypeSignature Language="VB.NET" Value="Public Delegate Function DllImportResolver(libraryName As String, assembly As Assembly, searchPath As Nullable(Of DllImportSearchPath)) As IntPtr " />
<TypeSignature Language="F#" Value="type DllImportResolver = delegate of string * Assembly * Nullable<DllImportSearchPath> -> nativeint" />
<TypeSignature Language="C++ CLI" Value="public delegate IntPtr DllImportResolver(System::String ^ libraryName, Assembly ^ assembly, Nullable<DllImportSearchPath> searchPath);" />
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices</AssemblyName>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="libraryName" Type="System.String" />
<Parameter Name="assembly" Type="System.Reflection.Assembly" />
<Parameter Name="searchPath" Type="System.Nullable<System.Runtime.InteropServices.DllImportSearchPath>" />
</Parameters>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<param name="libraryName">The native library to resolve.</param>
<param name="assembly">The assembly requesting the resolution.</param>
<param name="searchPath">The <see cref="T:System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute" /> on the PInvoke, if any. Otherwise, the <see cref="T:System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute" /> on the assembly, if any. Otherwise <see langword="null" />.</param>
<summary>Provides a delegate used to resolve native libraries via callback.</summary>
<returns>The handle for the loaded native library on success, or <see cref="F:System.IntPtr.Zero" /> on failure.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The runtime does not do any lifetime management around the handle returned by a <xref:System.Runtime.InteropServices.DllImportResolver>. It is left to the implementation and consuming code to keep the library loaded for as long as necessary and free it if/when desired.
]]></format>
</remarks>
</Docs>
</Type>