共用方式為


DslLibraryHasReferenceTypesSerializer.CreateInstance Method

This method creates an instance of DslLibraryHasReferenceTypes based on the tag currently pointed by the reader. The reader is guaranteed (by the caller) to be pointed at a serialized instance of DslLibraryHasReferenceTypes.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'宣告
Protected Overrides Function CreateInstance ( _
    serializationContext As SerializationContext, _
    reader As XmlReader, _
    partition As Partition _
) As ModelElement
protected override ModelElement CreateInstance(
    SerializationContext serializationContext,
    XmlReader reader,
    Partition partition
)
protected:
virtual ModelElement^ CreateInstance(
    SerializationContext^ serializationContext, 
    XmlReader^ reader, 
    Partition^ partition
) override
abstract CreateInstance : 
        serializationContext:SerializationContext * 
        reader:XmlReader * 
        partition:Partition -> ModelElement 
override CreateInstance : 
        serializationContext:SerializationContext * 
        reader:XmlReader * 
        partition:Partition -> ModelElement 
protected override function CreateInstance(
    serializationContext : SerializationContext, 
    reader : XmlReader, 
    partition : Partition
) : ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
Created DslLibraryHasReferenceTypes 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.

.NET Framework Security

See Also

Reference

DslLibraryHasReferenceTypesSerializer Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace