Share via


Hash Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the value of the computed hash code.

Namespace:  System.Security.Cryptography
Assembly:  System.Security (in System.Security.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property Hash As Byte()
public virtual byte[] Hash { get; }
public:
virtual property array<unsigned char>^ Hash {
    array<unsigned char>^ get ();
}
abstract Hash : byte[] with get
override Hash : byte[] with get
function get Hash () : byte[]

Property Value

Type: array<System. . :: . .Byte> [] () [] []
The current value of the computed hash code.

Exceptions

Exception Condition
CryptographicUnexpectedOperationException

HashValue is null Nothing nullptr unit a null reference (Nothing in Visual Basic) .

ObjectDisposedException

The object has already been disposed.

Remarks

The Hash property is a byte array; the HashSize property is a value that represent bits. Therefore, the number of elements in Hash is one-eighth the size of HashSize.

.NET Framework Security

See Also

Reference

HashAlgorithm Class

System.Security.Cryptography Namespace