You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Runtime.Loader/AssemblyLoadContext.xml
+27-11Lines changed: 27 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -730,12 +730,12 @@ Each <xref:System.Runtime.Loader.AssemblyLoadContext> can load only:
730
730
<Docs>
731
731
<paramname="unmanagedDllName">Name of the unmanaged library. Typically this is the filename without its path or extensions. </param>
732
732
<summary>Allows derived class to load an unmanaged library by name.</summary>
733
-
<returns>A handle to the loaded library, or <seelangword="null" />.</returns>
733
+
<returns>A handle to the loaded library, or <seecref="F:System.IntPtr.Zero" />.</returns>
734
734
<remarks>
735
735
<formattype="text/markdown"><![CDATA[
736
736
737
737
## Remarks
738
-
The default implementation always return `null`. When `null` is returned, the runtime loads the library with its default policy.
738
+
The default implementation always returns <xref:System.IntPtr.Zero?displayProperty=nameWithType>. When <xref:System.IntPtr.Zero?displayProperty=nameWithType> is returned, the runtime loads the library with its default policy.
739
739
740
740
This virtual method can be overridden to customize the unmanaged library search algorithm. When overridden the name can be used to identify the library. The loaded library does not need to match the requested name, but can be transformed as needed. This could include adjusting the name for platform specific naming.
741
741
@@ -893,9 +893,17 @@ This event is raised if the native library cannot be resolved by the default res
<paramname="directoryPath">The full path to the directory where the optimization profiles are stored.</param>
897
+
<summary>Sets the root path where the optimization profiles for this load context are stored.</summary>
898
+
<remarks>
899
+
<formattype="text/markdown"><![CDATA[
900
+
901
+
## Remarks
902
+
903
+
The profile optimization improves the startup performance of the load context on multicore computers by performing background compilation of methods that are likely to be executed, based on profiles created during previous compilations. For more information, see <xref:System.Runtime.ProfileOptimization>.
904
+
905
+
]]></format>
906
+
</remarks>
899
907
</Docs>
900
908
</Member>
901
909
<MemberMemberName="StartProfileOptimization">
@@ -924,9 +932,17 @@ This event is raised if the native library cannot be resolved by the default res
924
932
<ParameterName="profile"Type="System.String" />
925
933
</Parameters>
926
934
<Docs>
927
-
<paramname="profile">To be added.</param>
928
-
<summary>To be added.</summary>
929
-
<remarks>To be added.</remarks>
935
+
<paramname="profile">The name of the optimization profile.</param>
936
+
<summary>Starts the profile optimization for the specified profile.</summary>
937
+
<remarks>
938
+
<formattype="text/markdown"><![CDATA[
939
+
940
+
## Remarks
941
+
942
+
The profile optimization improves the startup performance of the load context on multicore computers by performing background compilation of methods that are likely to be executed, based on profiles created during previous compilations. For more information, see <xref:System.Runtime.ProfileOptimization>.
943
+
944
+
]]></format>
945
+
</remarks>
930
946
</Docs>
931
947
</Member>
932
948
<MemberMemberName="ToString">
@@ -946,8 +962,8 @@ This event is raised if the native library cannot be resolved by the default res
946
962
</ReturnValue>
947
963
<Parameters />
948
964
<Docs>
949
-
<summary>To be added.</summary>
950
-
<returns>To be added.</returns>
965
+
<summary>Returns the string representation of this load context.</summary>
966
+
<returns>The string representation of this load context.</returns>
951
967
<remarks>To be added.</remarks>
952
968
</Docs>
953
969
</Member>
@@ -1011,4 +1027,4 @@ This event is raised if the native library cannot be resolved by the default res
0 commit comments