HashAlgorithmProvider.HashLength 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得雜湊的長度,以位元組為單位。
public:
property unsigned int HashLength { unsigned int get(); };
uint32_t HashLength();
public uint HashLength { get; }
var uInt32 = hashAlgorithmProvider.hashLength;
Public ReadOnly Property HashLength As UInteger
屬性值
雜湊中的位元組數目。
備註
您應該確認雜湊資料的長度等於指定演算法所支援的雜湊長度。 如需詳細資訊,請參閱下列程式碼範例。