HashAlgorithm::Hash Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the value of the computed hash code.

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

public:
property array<unsigned char>^ Hash {
	virtual array<unsigned char>^ get();
}

Property Value

Type: array<System::Byte>^

The current value of the computed hash code.

Exception Condition
CryptographicUnexpectedOperationException

HashValue is null.

ObjectDisposedException

The object has already been disposed.

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
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: