Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.