This documentation is archived and is not being maintained.

HashAlgorithm.Hash Property

Gets the value of the computed hash code.

[Visual Basic]
Public Overridable ReadOnly Property Hash As Byte ()
public virtual byte[] Hash {get;}
public: __property virtual unsigned char get_Hash();
public function get Hash() : Byte[];

Property Value

The current value of the computed hash code.


Exception Type Condition
CryptographicUnexpectedOperationException HashValue is a null reference (Nothing in Visual Basic).


Hash is a byte array; HashSize is in bits. Therefore, the number of elements in Hash is one-eighth HashSize.


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