DataSchemaError Constructor (String, String, ErrorSeverity)
Initializes a new instance of the DataSchemaError class by using the provided message and the document name, 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, _
severity As ErrorSeverity _
)
public DataSchemaError(
string message,
string document,
ErrorSeverity severity
)
public:
DataSchemaError(
String^ message,
String^ document,
ErrorSeverity severity
)
new :
message:string *
document:string *
severity:ErrorSeverity -> DataSchemaError
public function DataSchemaError(
message : String,
document : String,
severity : ErrorSeverity
)
Parameters
- message
Type: System.String
A string that indicates the reason the error occurred.
- document
Type: System.String
A string that contains the file name where the error occurred.
- 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.