Číst v angličtině

Sdílet prostřednictvím


VisibilityPropertyPathSerializer.TryCreateInstance Method

This method creates a correct instance of VisibilityPropertyPath based on the tag currently pointed by the reader. If the reader is positioned at a serialized VisibilityPropertyPath, a new VisibilityPropertyPath instance will be created in the given partition, otherwise null is returned.

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

Syntax

public override ModelElement TryCreateInstance(
    SerializationContext serializationContext,
    XmlReader reader,
    Partition partition
)

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
Created VisibilityPropertyPath instance, or null if the reader is not pointing to a serialized VisibilityPropertyPath instance.

Remarks

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.

.NET Framework Security

See Also

Reference

VisibilityPropertyPathSerializer Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace