InterpretationError.CreateGeneralInterpretationError Method
Creates a new interpretation error instance with a severity value of Error.
Namespace: Microsoft.Data.Schema.Sql.SchemaModel.SqlServer
Assembly: Microsoft.Data.Schema.Sql (in Microsoft.Data.Schema.Sql.dll)
Syntax
'Declaration
Public Shared Function CreateGeneralInterpretationError ( _
fragment As TSqlFragment, _
errorCode As Integer, _
errorMessage As String _
) As InterpretationError
'Usage
Dim fragment As TSqlFragment
Dim errorCode As Integer
Dim errorMessage As String
Dim returnValue As InterpretationError
returnValue = InterpretationError.CreateGeneralInterpretationError(fragment, _
errorCode, errorMessage)
public static InterpretationError CreateGeneralInterpretationError(
TSqlFragment fragment,
int errorCode,
string errorMessage
)
public:
static InterpretationError^ CreateGeneralInterpretationError(
TSqlFragment^ fragment,
int errorCode,
String^ errorMessage
)
public static function CreateGeneralInterpretationError(
fragment : TSqlFragment,
errorCode : int,
errorMessage : String
) : InterpretationError
static member CreateGeneralInterpretationError :
fragment:TSqlFragment *
errorCode:int *
errorMessage:string -> InterpretationError
Parameters
- fragment
Type: Microsoft.Data.Schema.ScriptDom.Sql.TSqlFragment
The fragment
- errorCode
Type: System.Int32
The error code
- errorMessage
Type: System.String
The error message
Return Value
Type: Microsoft.Data.Schema.Sql.SchemaModel.SqlServer.InterpretationError
.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.