共用方式為


SafeRegistryHandle 建構函式

定義

多載

SafeRegistryHandle()

建立 SafeRegistryHandle

SafeRegistryHandle(IntPtr, Boolean)

初始化 SafeRegistryHandle 類別的新執行個體。

SafeRegistryHandle()

來源:
SafeRegistryHandle.cs

建立 SafeRegistryHandle

public:
 SafeRegistryHandle();
public SafeRegistryHandle ();
Public Sub New ()

適用於

SafeRegistryHandle(IntPtr, Boolean)

來源:
SafeRegistryHandle.cs

初始化 SafeRegistryHandle 類別的新執行個體。

public:
 SafeRegistryHandle(IntPtr preexistingHandle, bool ownsHandle);
public SafeRegistryHandle (IntPtr preexistingHandle, bool ownsHandle);
[System.Security.SecurityCritical]
public SafeRegistryHandle (IntPtr preexistingHandle, bool ownsHandle);
new Microsoft.Win32.SafeHandles.SafeRegistryHandle : nativeint * bool -> Microsoft.Win32.SafeHandles.SafeRegistryHandle
[<System.Security.SecurityCritical>]
new Microsoft.Win32.SafeHandles.SafeRegistryHandle : nativeint * bool -> Microsoft.Win32.SafeHandles.SafeRegistryHandle
Public Sub New (preexistingHandle As IntPtr, ownsHandle As Boolean)

參數

preexistingHandle
IntPtr

nativeint

代表要使用之已存在控制代碼的物件。

ownsHandle
Boolean

true 表示確實在結束階段釋放控制代碼,否則為 false,用以免除確實釋放。

屬性

備註

false不建議指定 。ownsHandle

適用於