Udostępnij za pośrednictwem


ExpectedSqlExceptionAttribute Constructor (String)

Initializes a new instance of the ExpectedSqlExceptionAttribute class.

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

Syntax

'Declaration
Public Sub New ( _
    noExceptionMessage As String _
)
public ExpectedSqlExceptionAttribute(
    string noExceptionMessage
)
public:
ExpectedSqlExceptionAttribute(
    String^ noExceptionMessage
)
new : 
        noExceptionMessage:string -> ExpectedSqlExceptionAttribute
public function ExpectedSqlExceptionAttribute(
    noExceptionMessage : String
)

Parameters

  • noExceptionMessage
    Type: System.String
    The default error message if no exception is thrown.

.NET Framework Security

See Also

Reference

ExpectedSqlExceptionAttribute Class

ExpectedSqlExceptionAttribute Overload

Microsoft.Data.Schema.UnitTesting Namespace

ExpectedSqlExceptionAttribute