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

See Also

Reference

ExpectedSqlExceptionAttribute Class

Microsoft.Data.Schema.UnitTesting Namespace