DslDefinitionModelSerializationHelperBase.ResolveSchema Method
Attempts to resolve the supplied schema namespace
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Declaração
Protected Shared Function ResolveSchema ( _
targetNamespace As String, _
schemaSet As XmlSchemaSet, _
schemaResolver As ISchemaResolver, _
reader As XmlReader, _
serializationContext As SerializationContext _
) As Boolean
protected static bool ResolveSchema(
string targetNamespace,
XmlSchemaSet schemaSet,
ISchemaResolver schemaResolver,
XmlReader reader,
SerializationContext serializationContext
)
protected:
static bool ResolveSchema(
String^ targetNamespace,
XmlSchemaSet^ schemaSet,
ISchemaResolver^ schemaResolver,
XmlReader^ reader,
SerializationContext^ serializationContext
)
static member ResolveSchema :
targetNamespace:string *
schemaSet:XmlSchemaSet *
schemaResolver:ISchemaResolver *
reader:XmlReader *
serializationContext:SerializationContext -> bool
protected static function ResolveSchema(
targetNamespace : String,
schemaSet : XmlSchemaSet,
schemaResolver : ISchemaResolver,
reader : XmlReader,
serializationContext : SerializationContext
) : boolean
Parameters
- targetNamespace
Type: System.String
- schemaSet
Type: System.Xml.Schema.XmlSchemaSet
- schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolver
- reader
Type: System.Xml.XmlReader
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Return Value
Type: System.Boolean
A flag indicating whether the schema was resolved or not
Remarks
If the schema can be resolved it is added to the supplied schema set. Otherwise, a warning will be written to serializationContext.
.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.