Certificate.GetHashValue Method

Definition

Overloads

GetHashValue()

Gets the SHA1 hash value for the certificate.

GetHashValue(String)

Gets the hash value for the certificate for a specified algorithm.

GetHashValue()

Gets the SHA1 hash value for the certificate.

public:
 virtual Platform::Array <byte> ^ GetHashValue() = GetHashValue;
/// [Windows.Foundation.Metadata.Overload("GetHashValue")]
winrt::array_view <byte> GetHashValue();
[Windows.Foundation.Metadata.Overload("GetHashValue")]
public byte[] GetHashValue();
function getHashValue()
Public Function GetHashValue () As Byte()

Returns

Byte[]

byte[]

The SHA1 hash value for the certificate.

Attributes

See also

Applies to

GetHashValue(String)

Gets the hash value for the certificate for a specified algorithm.

public:
 virtual Platform::Array <byte> ^ GetHashValue(Platform::String ^ hashAlgorithmName) = GetHashValue;
/// [Windows.Foundation.Metadata.Overload("GetHashValueWithAlgorithm")]
winrt::array_view <byte> GetHashValue(winrt::hstring const& hashAlgorithmName);
[Windows.Foundation.Metadata.Overload("GetHashValueWithAlgorithm")]
public byte[] GetHashValue(string hashAlgorithmName);
function getHashValue(hashAlgorithmName)
Public Function GetHashValue (hashAlgorithmName As String) As Byte()

Parameters

hashAlgorithmName
String

Platform::String

winrt::hstring

The hash algorithm to use for the hash value of the certificate. Only values of "SHA1" or "SHA256" are supported. To get the SHA2 hash value for the certificate, specify "SHA256".

Returns

Byte[]

byte[]

The hash value of the certificate.

Attributes

See also

Applies to