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: