ExpectedSqlExceptionAttribute.Severity Property
Gets or sets the expected severity value of the error.
Namespace: Microsoft.Data.Schema.UnitTesting
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
Syntax
'Declaration
Public Property Severity As Byte
public byte Severity { get; set; }
public:
property unsigned char Severity {
unsigned char get ();
void set (unsigned char value);
}
member Severity : byte with get, set
function get Severity () : byte
function set Severity (value : byte)
Property Value
Type: System.Byte
The expected severity level.
Remarks
If not supplied, the severity level from the thrown exception is ignored.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.