The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CngKeyCreationParameters::KeyUsage Property
.NET Framework (current version)
Gets or sets the cryptographic operations that apply to the current key.
Assembly: System.Core (in System.Core.dll)
public: property Nullable<CngKeyUsages> KeyUsage { Nullable<CngKeyUsages> get(); void set(Nullable<CngKeyUsages> value); }
Property Value
Type: System::Nullable<CngKeyUsages>A bitwise combination of one or more enumeration values that specify key usage. The default value is null, which indicates that the key storage provider's default key usage is set.
This property is used when you create a new CngKey object. It specifies the usages (such as encryption/decryption, signing/verification, and secret agreement generation) that will be enabled on the new key.
.NET Framework
Available since 3.5
Available since 3.5
Show: