DataSchemaError Constructor (String, String, Int32, Int32, String, Int32, ErrorSeverity)
Initializes a new instance of the DataSchemaError class by using the provided message, document name, line number, and column number, and by indicating the severity of the error.
Namespace: Microsoft.Data.Schema
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
document As String, _
line As Integer, _
column As Integer, _
prefix As String, _
errorCode As Integer, _
severity As ErrorSeverity _
)
public DataSchemaError(
string message,
string document,
int line,
int column,
string prefix,
int errorCode,
ErrorSeverity severity
)
public:
DataSchemaError(
String^ message,
String^ document,
int line,
int column,
String^ prefix,
int errorCode,
ErrorSeverity severity
)
new :
message:string *
document:string *
line:int *
column:int *
prefix:string *
errorCode:int *
severity:ErrorSeverity -> DataSchemaError
public function DataSchemaError(
message : String,
document : String,
line : int,
column : int,
prefix : String,
errorCode : int,
severity : ErrorSeverity
)
Parameters
- message
Type: System.String
A string that indicates the reason that the error occurred.
- document
Type: System.String
A string that contains the name of the file where the error occurred.
- line
Type: System.Int32
An int that includes the line number for the error.
- column
Type: System.Int32
An int that includes the column number for the error.
- prefix
Type: System.String
A string that contains a prefix for the error.
- errorCode
Type: System.Int32
An int that contains the error code.
- severity
Type: Microsoft.Data.Schema.ErrorSeverity
A member of the ErrorSeverity enumeration that indicates the severity of this error.
.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.
See Also
Reference
Microsoft.Data.Schema Namespace
ErrorSeverity