Bagikan melalui


ExpectedSqlExceptionAttribute.MatchFirstError Property

 

Gets a value that indicates whether the expected severity, state, and error number are to be matched against the first SqlError in the SqlException.

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

Syntax

public bool MatchFirstError { get; set; }
public:
property bool MatchFirstError {
    bool get();
    void set(bool value);
}
member MatchFirstError : bool with get, set
Public Property MatchFirstError As Boolean

Property Value

Type: System.Boolean

true to match the expected severity, state, and error number to the first SqlError in the exception; false to match the expected severity, state, and error number to any SqlError in the exception.

See Also

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

Return to top