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.
| Property | Access type | Description |
|---|---|---|
| Read-only |
Retrieves the OID object that identifies the algorithm used by the public key. This is the default property. | |
| Read-only |
Retrieves an EncodedData object that provides access to the value of the public key. | |
| Read-only |
Retrieves an EncodedData object that provides access to the parameters of the public key algorithm. | |
| 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 |
|
Send comments about this topic to Microsoft
Build date: 10/26/2012