ExpectedSqlExceptionAttribute.State 属性

获取或设置错误的预期错误状态。

命名空间:  Microsoft.Data.Schema.UnitTesting
程序集:  Microsoft.Data.Schema.UnitTesting(在 Microsoft.Data.Schema.UnitTesting.dll 中)

语法

声明
Public Property State As Byte
    Get
    Set
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)

属性值

类型:System.Byte
错误的预期状态。

备注

如果未提供,则忽略引发的异常的状态。

.NET Framework 安全性

请参见

参考

ExpectedSqlExceptionAttribute 类

Microsoft.Data.Schema.UnitTesting 命名空间