Share via


HashAlgorithm.Hash Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the value of the computed hash code.

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

Syntax

'Declaration
Public Overridable ReadOnly Property Hash As Byte()
public virtual byte[] Hash { get; }

Property Value

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

Exceptions

Exception Condition
CryptographicUnexpectedOperationException

HashValue is nulla 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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.