NonCryptographicHashAlgorithm.TryGetCurrentHash 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試在不修改累積狀態的情況下,將計算出的雜湊值寫入 。destination
public:
bool TryGetCurrentHash(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryGetCurrentHash(Span<byte> destination, out int bytesWritten);
member this.TryGetCurrentHash : Span<byte> * int -> bool
Public Function TryGetCurrentHash (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
參數
- bytesWritten
- Int32
當此方法回傳時,包含寫入 destination的位元組數。
傳回
true 如果 destination 足夠長以接收計算出的雜湊值;否則, false。