DslDefinitionModelSerializationBehaviorSerializationMessages.SchemaValidationError Method
Add a warning for schema validation error.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣言
Public Shared Sub SchemaValidationError ( _
serializationContext As SerializationContext, _
reader As XmlReader, _
message As String _
)
public static void SchemaValidationError(
SerializationContext serializationContext,
XmlReader reader,
string message
)
public:
static void SchemaValidationError(
SerializationContext^ serializationContext,
XmlReader^ reader,
String^ message
)
static member SchemaValidationError :
serializationContext:SerializationContext *
reader:XmlReader *
message:string -> unit
public static function SchemaValidationError(
serializationContext : SerializationContext,
reader : XmlReader,
message : String
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
SerializationContext to add the warning message to.
- reader
Type: System.Xml.XmlReader
The reader pointing to where the message is raised.
- message
Type: System.String
Validation message reported from schema validation.
.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
DslDefinitionModelSerializationBehaviorSerializationMessages Class