Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HashAlgorithm::Hash Property

 

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:
© 2017 Microsoft