Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CryptographicKey.ExportPublicKey(CryptographicPublicKeyBlobType) | exportPublicKey(CryptographicPublicKeyBlobType) method

Applies to Windows and Windows Phone

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

Syntax


var iBuffer = cryptographicKey.exportPublicKey(BlobType);

Parameters

BlobType

Type: CryptographicPublicKeyBlobType

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

Return value

Type: IBuffer

Buffer that contains the public key.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Security.Cryptography.Core
Windows::Security::Cryptography::Core [C++]

Metadata

Windows.winmd

See also

CryptographicKey
ExportPublicKey

 

 

Show:
© 2014 Microsoft