Certificate.GetHashValue 方法

定義

多載

GetHashValue()

取得憑證的 SHA1 雜湊值。

GetHashValue(String)

取得指定演算法之憑證的雜湊值。

GetHashValue()

取得憑證的 SHA1 雜湊值。

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()

傳回

Byte[]

byte[]

憑證的 SHA1 雜湊值。

屬性

另請參閱

適用於

GetHashValue(String)

取得指定演算法之憑證的雜湊值。

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()

參數

hashAlgorithmName
String

Platform::String

winrt::hstring

要用於憑證雜湊值的雜湊演算法。 僅支援 「SHA1」 或 「SHA256」 的值。 若要取得憑證的 SHA2 雜湊值,請指定 「SHA256」。

傳回

Byte[]

byte[]

憑證的雜湊值。

屬性

另請參閱

適用於