System.Security.Cryptography.X509Certificates.PublicKey.Key Property

Gets an System.Security.Cryptography.RSACryptoServiceProvider or System.Security.Cryptography.DSACryptoServiceProvider object representing the public key.

Syntax

public System.Security.Cryptography.AsymmetricAlgorithm Key { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property returns the public key. Both System.Security.Cryptography.RSA and System.Security.Cryptography.DSA keys are supported. Call this property to obtain a certificate's public key. Repeated calls to this property will return the same key.

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0