ExpectedSqlExceptionAttribute.MessageNumber Property
Gets or sets the expected error number.
Namespace: Microsoft.Data.Schema.UnitTesting
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
Syntax
'Declaration
Public Property MessageNumber As Integer
public int MessageNumber { get; set; }
public:
property int MessageNumber {
int get ();
void set (int value);
}
member MessageNumber : int with get, set
function get MessageNumber () : int
function set MessageNumber (value : int)
Property Value
Type: System.Int32
The expected error number.
Remarks
If not supplied, the value 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.