DomainRoleImplementedByCollectionTypeSerializer.Read Method
Public Read() method that deserializes one DomainRoleImplementedByCollectionType instance from XML.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣告
Public Overrides Sub Read ( _
serializationContext As SerializationContext, _
element As ModelElement, _
reader As XmlReader _
)
public override void Read(
SerializationContext serializationContext,
ModelElement element,
XmlReader reader
)
public:
virtual void Read(
SerializationContext^ serializationContext,
ModelElement^ element,
XmlReader^ reader
) override
abstract Read :
serializationContext:SerializationContext *
element:ModelElement *
reader:XmlReader -> unit
override Read :
serializationContext:SerializationContext *
element:ModelElement *
reader:XmlReader -> unit
public override function Read(
serializationContext : SerializationContext,
element : ModelElement,
reader : XmlReader
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Serialization context.
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
In-memory DomainRoleImplementedByCollectionType instance that will get the deserialized data.
- reader
Type: System.Xml.XmlReader
XmlReader to read serialized data from.
Remarks
When this method is called, caller guarantees that the passed-in XML reader is positioned at the open XML tag of the DomainRoleImplementedByCollectionType element that is about to be deserialized. The method needs to ensure that when it returns, the reader is positioned at the open XML tag of the next sibling element, or the close tag of the parent element (or EOF).
.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.