Lire en anglais

Partager via


ExplorerBehaviorHasNodeSettingsSerializer.TryCreateDerivedInstance Method

This method creates a correct derived instance of ExplorerBehaviorHasNodeSettings 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 ExplorerBehaviorHasNodeSettings type itself, only derived types are checked.

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 ElementLink TryCreateDerivedInstance(
    SerializationContext serializationContext,
    XmlReader reader,
    Partition partition
)

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ElementLink
Created instance that derives from ExplorerBehaviorHasNodeSettings, or null if the reader is not pointing to such a serialized 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

ExplorerBehaviorHasNodeSettingsSerializer Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace