CryptographicKey.ExportPublicKey Method

Definition

Overloads

ExportPublicKey()

Exports a public key to a buffer.

ExportPublicKey(CryptographicPublicKeyBlobType)

Exports a public key to a buffer given a specified format.

ExportPublicKey()

Exports a public key to a buffer.

public:
 virtual IBuffer ^ ExportPublicKey() = ExportPublicKey;
/// [Windows.Foundation.Metadata.Overload("ExportDefaultPublicKeyBlobType")]
IBuffer ExportPublicKey();
[Windows.Foundation.Metadata.Overload("ExportDefaultPublicKeyBlobType")]
public IBuffer ExportPublicKey();
function exportPublicKey()
Public Function ExportPublicKey () As IBuffer

Returns

Buffer that contains the public key.

Attributes

See also

Applies to

ExportPublicKey(CryptographicPublicKeyBlobType)

Exports a public key to a buffer given a specified format.

public:
 virtual IBuffer ^ ExportPublicKey(CryptographicPublicKeyBlobType BlobType) = ExportPublicKey;
/// [Windows.Foundation.Metadata.Overload("ExportPublicKeyWithBlobType")]
IBuffer ExportPublicKey(CryptographicPublicKeyBlobType const& BlobType);
[Windows.Foundation.Metadata.Overload("ExportPublicKeyWithBlobType")]
public IBuffer ExportPublicKey(CryptographicPublicKeyBlobType BlobType);
function exportPublicKey(BlobType)
Public Function ExportPublicKey (BlobType As CryptographicPublicKeyBlobType) As IBuffer

Parameters

BlobType
CryptographicPublicKeyBlobType

A CryptographicPublicKeyBlobType enumeration value that specifies the format of the key in the buffer. The default value is X509SubjectPublicKeyInfo.

Returns

Buffer that contains the public key.

Attributes

See also

Applies to