Share via


State Field

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

Represents the state of the hash computation.

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

Syntax

'Declaration
Protected State As Integer
protected int State
protected:
int State
val mutable State: int
protected var State : int

Remarks

This field is used to prevent users from changing the key of a keyed hash algorithm during a hash operation. When a key change is legitimate, the value of this field is zero both before and after a hash operation. When a key change is not legitimate, the value of this field is nonzero.

.NET Framework Security

See Also

Reference

HashAlgorithm Class

System.Security.Cryptography Namespace