4 references to TryLoad
System.Net.Quic (3)
System\Net\Quic\Internal\MsQuicApi.cs (3)
110
loaded = NativeLibrary.
TryLoad
(path, typeof(MsQuicApi).Assembly, DllImportSearchPath.LegacyBehavior, out msQuicHandle);
115
loaded = NativeLibrary.
TryLoad
($"{Interop.Libraries.MsQuic}.{s_minMsQuicVersion.Major}", typeof(MsQuicApi).Assembly, null, out msQuicHandle) ||
116
NativeLibrary.
TryLoad
(Interop.Libraries.MsQuic, typeof(MsQuicApi).Assembly, null, out msQuicHandle);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (1)
91
if (!NativeLibrary.
TryLoad
(library, typeof(object).Assembly, DllImportSearchPath.ApplicationDirectory | DllImportSearchPath.System32, out IntPtr lib) && failOnLoadFailure)