Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetCertHash Method

X509Certificate.GetCertHash Method

Returns the hash value for the X.509v3 certificate as an array of bytes.

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

abstract GetCertHash : unit -> byte[] 
override GetCertHash : unit -> byte[] 

Return Value

Type: System.Byte[]
The hash value for the X.509 certificate.

The following example uses the GetCertHash method to fill an array of bytes with the hash value for an X.509 certificate.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft