Bagikan melalui


ExpectedSqlExceptionAttribute.MessageNumber Property

 

Gets or sets the expected error number.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Syntax

public int MessageNumber { get; set; }
public:
property int MessageNumber {
    int get();
    void set(int value);
}
member MessageNumber : int with get, set
Public Property MessageNumber As Integer

Property Value

Type: System.Int32

The expected error number.

Remarks

If not supplied, the value from the thrown exception is ignored.

See Also

ExpectedSqlExceptionAttribute Class
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace

Return to top