This documentation is archived and is not being maintained.

HashAlgorithm.HashFinal Method

When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.

[Visual Basic]
Protected MustOverride Function HashFinal() As Byte()
[C#]
protected abstract byte[] HashFinal();
[C++]
protected: virtual unsigned char HashFinal()  __gc[] = 0;
[JScript]
protected abstract function HashFinal() : Byte[];

Return Value

The computed hash code.

Remarks

This method finalizes any partial computation and returns the correct hash value for the data stream.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HashAlgorithm Class | HashAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services

Show: