Windows apps
Collapse the table of content
Expand the table of content
Information
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.

X509KeyUsageExtension::KeyUsages Property

 

Gets the key usage flag associated with the certificate.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

public:
property X509KeyUsageFlags KeyUsages {
	X509KeyUsageFlags get();
}

Property Value

Type: System.Security.Cryptography.X509Certificates::X509KeyUsageFlags

One of the KeyUsages values.

Exception Condition
CryptographicException

The extension cannot be decoded.

This property returns a value from the KeyUsages enumeration that indicates how to use the certificate key.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft