ExpectedSqlExceptionAttribute.State Property

Gets or sets the expected error state of the error.

Namespace:  Microsoft.Data.Schema.UnitTesting
Assembly:  Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)

Syntax

'Declaration
Public Property State As Byte
public byte State { get; set; }
public:
property unsigned char State {
    unsigned char get ();
    void set (unsigned char value);
}
member State : byte with get, set
function get State () : byte
function set State (value : byte)

Property Value

Type: System.Byte
The expected state of the error.

Remarks

If not supplied, the state from the thrown exception is ignored.

.NET Framework Security

See Also

Reference

ExpectedSqlExceptionAttribute Class

Microsoft.Data.Schema.UnitTesting Namespace