SqlServerError Constructor (String, String, Int32, ErrorSeverity)
Initializes a new instance of the SqlServerError class.
Namespace: Microsoft.Data.Schema.Sql.Common
Assembly: Microsoft.Data.Schema.Sql (in Microsoft.Data.Schema.Sql.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
document As String, _
errorCode As Integer, _
severity As ErrorSeverity _
)
'Usage
Dim message As String
Dim document As String
Dim errorCode As Integer
Dim severity As ErrorSeverity
Dim instance As New SqlServerError(message, _
document, errorCode, severity)
public SqlServerError(
string message,
string document,
int errorCode,
ErrorSeverity severity
)
public:
SqlServerError(
String^ message,
String^ document,
int errorCode,
ErrorSeverity severity
)
public function SqlServerError(
message : String,
document : String,
errorCode : int,
severity : ErrorSeverity
)
new :
message:string *
document:string *
errorCode:int *
severity:ErrorSeverity -> SqlServerError
Parameters
- message
Type: System.String
The error message
- document
Type: System.String
The document
- errorCode
Type: System.Int32
The error code
- severity
Type: Microsoft.Data.Schema.Common.ErrorSeverity
The error severity
.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.