This documentation is archived and is not being maintained.

CngKey.Open Method

Creates an instance of an CngKey object that represents an existing key.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Open(String) Creates an instance of an CngKey object that represents an existing named key.
Public method Static member Open(SafeNCryptKeyHandle, CngKeyHandleOpenOptions) Creates an instance of an CngKey object by using a handle to an existing key.
Public method Static member Open(String, CngProvider) Creates an instance of an CngKey object that represents an existing named key, using the specified key storage provider (KSP).
Public method Static member Open(String, CngProvider, CngKeyOpenOptions) Creates an instance of an CngKey object that represents an existing named key, using the specified key storage provider (KSP) and key open options.
Top
Show: