ExtensionExtendsElementSerializer.TryCreateDerivedInstance Method
This method creates a correct derived instance of ExtensionExtendsElement based on the tag currently pointed by the reader. Note that the difference between this method and the above one is that this method will never create an instance of the ExtensionExtendsElement type itself, only derived types are checked.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
'Declaration
Public Overrides Function TryCreateDerivedInstance ( _
serializationContext As SerializationContext, _
reader As XmlReader, _
partition As Partition _
) As ElementLink
public override ElementLink TryCreateDerivedInstance(
SerializationContext serializationContext,
XmlReader reader,
Partition partition
)
public:
virtual ElementLink^ TryCreateDerivedInstance(
SerializationContext^ serializationContext,
XmlReader^ reader,
Partition^ partition
) override
abstract TryCreateDerivedInstance :
serializationContext:SerializationContext *
reader:XmlReader *
partition:Partition -> ElementLink
override TryCreateDerivedInstance :
serializationContext:SerializationContext *
reader:XmlReader *
partition:Partition -> ElementLink
public override function TryCreateDerivedInstance(
serializationContext : SerializationContext,
reader : XmlReader,
partition : Partition
) : ElementLink
serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContextSerialization context.
reader
Type: XmlReaderXmlReader to read serialized data from.
partition
Type: Microsoft.VisualStudio.Modeling.PartitionPartition in which new elements should be created.
Type: Microsoft.VisualStudio.Modeling.ElementLink
Created instance that derives from ExtensionExtendsElement, or null if the reader is not pointing to such a serialized instance.
The caller will guarantee that the reader is positioned at open XML tag of the next element being read. This method should not move the reader; the reader should remain at the same position when this method returns.
- 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.