Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Win32.​SafeHandles.​SafeNCryptSecretHandle

Assembly: System.Security.Cryptography

Inheritance: object → System.Runtime.ConstrainedExecution.CriticalFinalizerObjectSystem.Runtime.InteropServices.SafeHandleSafeHandleZeroOrMinusOneIsInvalidSafeNCryptHandle → SafeNCryptSecretHandle

Provides a safe handle that represents a secret agreement value (NCRYPT_SECRET_HANDLE).

Fields and Constants

protected nint
handle

Properties

public bool
IsInvalid
public bool
IsClosed

Methods

protected bool
ReleaseNativeHandle​()
protected bool
ReleaseHandle​()
Inherited from SafeNCryptHandle
Returns <see langword="true" /> if the handle is released successfully; otherwise, <see langword="false" /> .
Releases a handle used by a Cryptography Next Generation (CNG) object.
public void
Close​()
Inherited from SafeHandle
public void
DangerousAddRef​(System.Boolean& success)
Inherited from SafeHandle
public nint
DangerousGetHandle​()
Inherited from SafeHandle
public void
DangerousRelease​()
Inherited from SafeHandle
public void
Dispose​()
Inherited from SafeHandle
protected void
Dispose​(bool disposing)
Inherited from SafeHandle
protected void
Finalize​()
Inherited from SafeHandle
protected void
SetHandle​(nint handle)
Inherited from SafeHandle
public void
SetHandleAsInvalid​()
Inherited from SafeHandle
public bool
Equals​(object obj)
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object