CngKey.ProviderHandle 属性

定义

获取密钥存储提供程序 (KSP) 的一个本机句柄 (NCRYPT_PROV_HANDLE)。

public:
 property Microsoft::Win32::SafeHandles::SafeNCryptProviderHandle ^ ProviderHandle { Microsoft::Win32::SafeHandles::SafeNCryptProviderHandle ^ get(); };
public Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle ProviderHandle { get; }
public Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle ProviderHandle { [System.Security.SecurityCritical] get; }
member this.ProviderHandle : Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle
[<get: System.Security.SecurityCritical>]
member this.ProviderHandle : Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle
Public ReadOnly Property ProviderHandle As SafeNCryptProviderHandle

属性值

SafeNCryptProviderHandle

KSP 的一个句柄。

属性

注解

返回的句柄是当前 CngKey 对象中句柄的副本。 即使当前 CngKey 已释放,并且必须单独释放,它也会保留。

可以按任意顺序释放当前对象和句柄,而不会产生任何负面影响。

适用于