Auf Englisch lesen

Freigeben über


ExtensionElementSerializer.TryCreateMonikerInstance Method

This method creates a Moniker of the correct derived (including ExtensionElement itself) instance of ExtensionElement based on the tag currently pointed by the reader.

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

Syntax

public override Moniker TryCreateMonikerInstance(
    SerializationContext serializationContext,
    XmlReader reader,
    ModelElement sourceRolePlayer,
    Guid relDomainClassId,
    Partition partition
)

Parameters

  • relDomainClassId
    Type: System.Guid

    The DomainClass Id of the relationship that connects the sourceRolePlayer to the moniker being created.

Return Value

Type: Microsoft.VisualStudio.Modeling.Moniker
Created ModelRoot instance, or null if the reader is not pointing to a correct monikerized 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

ExtensionElementSerializer Class

Microsoft.VisualStudio.Modeling Namespace