HashAlgorithmProvider.CreateHash 方法

定義

建立可重複使用 的 CryptographicHash 物件。

public:
 virtual CryptographicHash ^ CreateHash() = CreateHash;
CryptographicHash CreateHash();
public CryptographicHash CreateHash();
function createHash()
Public Function CreateHash () As CryptographicHash

傳回

可重複使用的雜湊物件。

備註

您必須先呼叫 OpenAlgorithm 方法,才能呼叫此屬性。 在CryptographicHash物件上呼叫Append方法,以將雜湊資料複製到緩衝區。 呼叫 GetValueAndReset 方法來擷取雜湊資料並重設 CryptographicHash 物件,以便再次用來雜湊更多資料。

適用於

另請參閱