Export (0) Print
Expand All

PublicKey object

[The PublicKey object is available for use in the operating systems specified in the Requirements section. Instead, use the X509Certificate2.PublicKey Property in the System.Security.Cryptography.X509Certificates namespace.]

The PublicKey object represents a public key in a Certificate object.

When to use

The PublicKey object is used to retrieve data about the public key.

Members

The PublicKey object has these types of members:

Properties

The PublicKey object has these properties.

PropertyAccess typeDescription

Algorithm

Read-only

Retrieves the OID object that identifies the algorithm used by the public key. This is the default property.

EncodedKey

Read-only

Retrieves an EncodedData object that provides access to the value of the public key.

EncodedParameters

Read-only

Retrieves an EncodedData object that provides access to the parameters of the public key algorithm.

Length

Read-only

Retrieves the length of the public key in bits.

 

Remarks

The PublicKey object cannot be created.

The PublicKey object is used by the Certificate.PublicKey method.

Requirements

Redistributable

CAPICOM 2.0 or later on Windows Server 2003 and Windows XP

DLL

Capicom.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft