56 references to New
Microsoft.AspNetCore.Cryptography.Internal (4)
SafeHandles\BCryptHandle.cs (1)
11: base(ownsHandle: true)
SafeHandles\LocalAllocHandle.cs (1)
16: base(ownsHandle: true) { }
SafeHandles\NCryptDescriptorHandle.cs (1)
12: base(ownsHandle: true)
SafeHandles\SafeLibraryHandle.cs (1)
20: base(ownsHandle: true)
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\SafeLibraryHandle.cs (1)
17: base(ownsHandle: true)
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
272private SafeProcessHandle() : base(true)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Interop\JobObjectInfo.cs (1)
220: base(true)
Microsoft.ML.LightGbm (2)
WrappedLightGbmInterface.cs (2)
73: base(true) 168: base(true)
Microsoft.ML.Transforms (1)
Text\LdaSingleBox.cs (1)
21: base(true)
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\NativeTypes.vb (1)
35MyBase.New(True)
Microsoft.Win32.Registry (2)
artifacts\obj\Microsoft.Win32.Registry\Debug\net10.0\Microsoft.Win32.Registry.notsupported.cs (2)
119public SafeRegistryHandle() : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } 120public SafeRegistryHandle(System.IntPtr preexistingHandle, bool ownsHandle) : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
PresentationCore (8)
System\Windows\Media\ColorContextHelper.cs (2)
21: base(true) 29: base(true)
System\Windows\Media\ColorTransformHelper.cs (2)
20: base(true) 28: base(true)
System\Windows\Media\SafeMILHandle.cs (2)
23internal SafeMILHandle() : base(true) 31internal SafeMILHandle(IntPtr handle) : base(true)
System\Windows\Media\SafeReversePInvokeHandle.cs (2)
24internal SafeReversePInvokeWrapper() : base(true) 32internal SafeReversePInvokeWrapper(IntPtr delegatePtr) : base(true)
PresentationFramework (5)
System\Windows\Standard\NativeMethods.cs (5)
1357private SafeFindHandle() : base(true) { } 1399private SafeDC() : base(true) { } 1511private SafeHBITMAP() : base(true) { } 1521private SafeGdiplusStartupToken() : base(true) { } 1554: base(true)
ReachFramework (1)
MS\Internal\Printing\Configuration\SafeModuleHandle.cs (1)
21: base(true)
System.Diagnostics.Process (2)
artifacts\obj\System.Diagnostics.Process\Debug\net10.0\System.Diagnostics.Process.notsupported.cs (2)
11public SafeProcessHandle() : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.Process_PlatformNotSupported); } 12public SafeProcessHandle(System.IntPtr existingHandle, bool ownsHandle) : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.Process_PlatformNotSupported); }
System.IO.MemoryMappedFiles (1)
artifacts\obj\System.IO.MemoryMappedFiles\Debug\net10.0\System.IO.MemoryMappedFiles.notsupported.cs (1)
11public SafeMemoryMappedFileHandle() : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); }
System.IO.Pipes (2)
artifacts\obj\System.IO.Pipes\Debug\net10.0\System.IO.Pipes.notsupported.cs (2)
11public SafePipeHandle() : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.Pipes_PlatformNotSupported); } 12public SafePipeHandle(System.IntPtr preexistingHandle, bool ownsHandle) : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.Pipes_PlatformNotSupported); }
System.Net.Primitives (2)
artifacts\obj\System.Net.Primitives\Debug\net10.0\System.Net.Primitives.notsupported.cs (2)
595protected ChannelBinding() : base(default(bool)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetPrimitives); } 596protected ChannelBinding(bool ownsHandle) : base(default(bool)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetPrimitives); }
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.cs (1)
17public SafeFileHandle(IntPtr preexistingHandle, bool ownsHandle) : base(ownsHandle)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
51: base(ownsHandle)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeWaitHandle.cs (2)
13public SafeWaitHandle() : base(true) 22public SafeWaitHandle(IntPtr existingHandle, bool ownsHandle) : base(ownsHandle)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
76protected SafeBuffer(bool ownsHandle) : base(ownsHandle)
System.Security.Cryptography (3)
artifacts\obj\System.Security.Cryptography\Debug\net10.0\System.Security.Cryptography.notsupported.cs (3)
12protected SafeNCryptHandle() : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 14protected SafeNCryptHandle(System.IntPtr handle, System.Runtime.InteropServices.SafeHandle parentHandle) : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } 40public SafeX509ChainHandle() : base (default(bool)) { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); }
UIAutomationClient (2)
MS\Internal\Automation\SafeProcessHandle.cs (2)
15private SafeProcessHandle() : base(true) {} 17internal SafeProcessHandle(NativeMethods.HWND hwnd) : base(true)
UIAutomationClientSideProviders (8)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (2)
36private RemoteMemoryBlock() : base(true) {} 38internal RemoteMemoryBlock(int cbSize, SafeProcessHandle processHandle) : base(true)
MS\Internal\AutomationProxies\SafeCoTaskMem.cs (2)
14private SafeCoTaskMem() : base(true) {} 16internal SafeCoTaskMem(int length) : base(true)
MS\Internal\AutomationProxies\SafeProcessHandle.cs (2)
15private SafeProcessHandle() : base(true) {} 17internal SafeProcessHandle(IntPtr hwnd) : base(true)
MS\Internal\AutomationProxies\SafeThemeHandle.cs (2)
17private SafeThemeHandle() : base(true) {} 21internal SafeThemeHandle(IntPtr preexistingHandle, bool ownsHandle) : base(ownsHandle)
UIAutomationTypes (3)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (3)
211protected WpfSafeHandle(bool ownsHandle, int collectorId) : base(ownsHandle) 550 public SafeLocalMemHandle() : base(true) 554 public SafeLocalMemHandle(IntPtr existingHandle, bool ownsHandle) : base(ownsHandle)
WindowsFormsIntegration (1)
MS\Win32\DCSafeHandle.cs (1)
10private DCSafeHandle() : base(true) { }