DecoratorSerializer.CreateInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method creates an instance of Decorator based on the tag currently pointed by the reader. The reader is guaranteed (by the caller) to be pointed at a serialized instance of Decorator.
protected:
override Microsoft::VisualStudio::Modeling::ModelElement ^ CreateInstance(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::Partition ^ partition);
protected override Microsoft.VisualStudio.Modeling.ModelElement CreateInstance (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, System.Xml.XmlReader reader, Microsoft.VisualStudio.Modeling.Partition partition);
override this.CreateInstance : Microsoft.VisualStudio.Modeling.SerializationContext * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.Partition -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Overrides Function CreateInstance (serializationContext As SerializationContext, reader As XmlReader, partition As Partition) As ModelElement
Parameters
- serializationContext
- SerializationContext
Serialization context.
- reader
- XmlReader
XmlReader to read serialized data from.
- partition
- Partition
Partition in which new Decorator instance should be created.
Returns
Created Decorator instance.
Remarks
The caller will guarantee that the reader is positioned at open XML tag of the ModelRoot instance being read. This method should not move the reader; the reader should remain at the same position when this method returns.