Export (0) Print
Expand All

CngKey Members

.NET Framework 3.5

Defines the core functionality for keys that are used with Cryptography Next Generation (CNG) objects.

The CngKey type exposes the following members.

  NameDescription
Public method Static member Create Overloaded. Creates a CngKey object that represents a new key.
Public method Delete Removes the key that is associated with the object.
Public method Dispose Releases all resources used by the current instance of the CngKey class.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Exists Overloaded. Checks for a named key in a specific key storage provider(KSP).
Public method Export Exports the key material into a BLOB, in the specified format.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetProperty Gets a property, given a name and a set of property options.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method HasProperty Checks to see whether the specified property exists on the key.
Public method Static member Import Overloaded. Creates a new key by importing key material into the key storage provider (KSP).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Open Overloaded. Creates an instance of an CngKey object that represents an existing key.
Public method SetProperty Sets a named property on the key.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property Algorithm Gets the algorithm that is used by the key.
Public property AlgorithmGroup Gets the algorithm group that is used by the key.
Public property ExportPolicy Gets the export policy that is used by the key.
Public property Handle Gets a safe handle that represents a native key (NCRYPT_KEY_HANDLE).
Public property IsEphemeral Gets the persistence state of the key.
Public property IsMachineKey Gets the scope (machine or user) of the key.
Public property KeyName Gets the name of the key.
Public property KeySize Gets the key size in bits.
Public property KeyUsage Gets the cryptographic operations specified by the key.
Public property ParentWindowHandle Gets or sets the window handle (HWND) that should be used for user interface (UI) prompts caused by accessing the key.
Public property Provider Gets the key storage provider (KSP) that manages the key.
Public property ProviderHandle Gets a native handle (an NCRYPT_PROV_HANDLE) to the key storage provider (KSP).
Public property UIPolicy Gets parameters that control the user interface (UI) for accessing the key.
Public property UniqueName Gets the unique name for the key.
Top

Community Additions

ADD
Show:
© 2014 Microsoft