Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​X509Certificates.​X509EnhancedKeyUsageExtension
Assembly: System.Security.Cryptography
Inheritance: object → AsnEncodedData → X509Extension → X509EnhancedKeyUsageExtension
Defines the collection of object identifiers (OIDs) that indicates the applications that use the key. This class cannot be inherited.
Properties
public
OidCollection
EnhancedKeyUsages
Gets the collection of object identifiers (OIDs) that indicate the applications that use the key.
public
bool
Critical
Gets a Boolean value indicating whether the extension is critical.
public
Oid
Oid
Gets or sets the <see cref="T:System.Security.Cryptography.Oid" /> value for an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.
public
byte[]
RawData
Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.
Methods
public
void
CopyFrom​(AsnEncodedData asnEncodedData)
asnEncodedData
The encoded data to use to create the extension.
Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.
public
string
Format​(bool multiLine)
Inherited from AsnEncodedData
multiLine
<see langword="true" /> if the return string should contain carriage returns; otherwise, <see langword="false" /> .
Returns A formatted string that represents the Abstract Syntax Notation One (ASN.1)-encoded data.
Returns a formatted version of the Abstract Syntax Notation One (ASN.1)-encoded data as a string.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object