Export (0) Print
Expand All

X509Certificate.GetPublicKey Method

Returns the public key for the X.509 version 3 certificate.

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public virtual byte[] GetPublicKey()

Return Value

Type: System.Byte[]
The public key for the X.509 certificate as an array of bytes.

ExceptionCondition
CryptographicException

The certificate context is invalid.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft