ExpectedSqlExceptionAttribute.State Property

Gets or sets the expected error state of the error.

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

Syntax

'Declaration
Public Property State As Byte 
    Get 
    Set
'Usage
Dim instance As ExpectedSqlExceptionAttribute 
Dim value As Byte 

value = instance.State

instance.State = value
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.

See Also

Reference

ExpectedSqlExceptionAttribute Class

Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace