SafeNCryptHandle Class

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Provides a safe handle that can be used by Cryptography Next Generation (CNG) objects.

Namespace:   Microsoft.Win32.SafeHandles
Assembly:  System.Core (in System.Core.dll)


[SecurityCriticalAttribute(SecurityCriticalScope.Everything)]
[SecurityPermissionAttribute(SecurityAction.LinkDemand, UnmanagedCode = true)]
[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, 
	UnmanagedCode = true)]
public abstract class SafeNCryptHandle : SafeHandleZeroOrMinusOneIsInvalid

NameDescription
System_CAPS_protmethodSafeNCryptHandle()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the SafeNCryptHandle class.

NameDescription
System_CAPS_pubpropertyIsClosed

Gets a value indicating whether the handle is closed.(Inherited from SafeHandle.)

System_CAPS_pubpropertyIsInvalid

Gets a value that indicates whether the handle is invalid.(Inherited from SafeHandleZeroOrMinusOneIsInvalid.)

NameDescription
System_CAPS_pubmethodClose()

Marks the handle for releasing and freeing resources.(Inherited from SafeHandle.)

System_CAPS_pubmethodDangerousAddRef(Boolean)

Manually increments the reference counter on SafeHandle instances.(Inherited from SafeHandle.)

System_CAPS_pubmethodDangerousGetHandle()

Returns the value of the handle field.(Inherited from SafeHandle.)

System_CAPS_pubmethodDangerousRelease()

Manually decrements the reference counter on a SafeHandle instance.(Inherited from SafeHandle.)

System_CAPS_pubmethodDispose()

Releases all resources used by the SafeHandle class.(Inherited from SafeHandle.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.(Inherited from SafeHandle.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Frees all resources associated with the handle.(Inherited from SafeHandle.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodReleaseHandle()

This API supports the product infrastructure and is not intended to be used directly from your code. Releases a handle used by a Cryptography Next Generation (CNG) object.(Overrides SafeHandle.ReleaseHandle().)

System_CAPS_protmethodReleaseNativeHandle()

This API supports the product infrastructure and is not intended to be used directly from your code. Releases a native handle used by a Cryptography Next Generation (CNG) object.

System_CAPS_protmethodSetHandle(IntPtr)

Sets the handle to the specified pre-existing handle.(Inherited from SafeHandle.)

System_CAPS_pubmethodSetHandleAsInvalid()

Marks a handle as no longer used.(Inherited from SafeHandle.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_protfieldhandle

Specifies the handle to be wrapped.(Inherited from SafeHandle.)

SecurityPermission

for permission to call unmanaged code. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode

SecurityPermission

for permission to call unmanaged code. Security action: InheritanceDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode

.NET Framework
Available since 3.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: