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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。