Moniker Class

 

Contains an expression used to map to its element.

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

System::Object
  Microsoft.VisualStudio.Modeling::Moniker

[SerializableAttribute]
public ref class Moniker sealed : IComparable<Moniker^>

NameDescription
System_CAPS_pubpropertyColumn

Even though a Moniker is a concept in the model that doesn't tie to a physical location in serialized format, it is usually used in serialization/deserialization. The location of the moniker in the serialized format can greatly help analyze problems with unresolved monikers, so we store the column number of where the moniker is stored in serialized format.

System_CAPS_pubpropertyDomainClassInfo

The DomainClassInfo of the DomainClass that this moniker should resolve to.

System_CAPS_pubpropertyDomainModelFullName

The name of the DomainModel that the element represented by this Moniker resides in. This is used to find the MonikerResolver.

System_CAPS_pubpropertyDomainRelationshipInfo

The DomainRelationshipInfo this moniker participates in

System_CAPS_pubpropertyId

The Id of this Moniker.

System_CAPS_pubpropertyKey

The key of the Moniker

System_CAPS_pubpropertyLine

Even though a Moniker is a concept in the model that doesn't tie to a physical location in serialized format, it is usually used in serialization/deserialization. The location of the moniker in the serialized format can greatly help analyze problems with unresolved monikers, so we store the line number of where the moniker is stored in serialized format.

System_CAPS_pubpropertyLink

Gets or sets the link which contains role player for this moniker.

System_CAPS_pubpropertyLocation

Even though a Moniker is a concept in the model that doesn't tie to a physical location in serialized format, it is usually used in serialization/deserialization. The location of the moniker in the serialized format can greatly help analyze problems with unresolved monikers, so we store the location of where the moniker is stored in serialized format. The location is optional, and can be null if not available (e.g. Moniker created in memory).

System_CAPS_pubpropertyModelElement

The model element the moniker resolves to.

System_CAPS_pubpropertyMonikerName

The name of the Moniker

System_CAPS_pubpropertyResolved

Set/Get moniker resolve state

System_CAPS_pubpropertyStore

The Store that the Moniker is created within.

NameDescription
System_CAPS_pubmethodCompareTo(Moniker^)

Compares two Monikers based upon their Id

System_CAPS_pubmethodConnectElement()

Connects the element represented by this moniker to the element link

System_CAPS_pubmethodDelete()

Remove the moniker

System_CAPS_pubmethodDeleteLink()

Disconnect the moniker's resolved element from the element link, and delete the link

System_CAPS_pubmethodDisconnectElement()

Disconnects the element represented by this moniker to the element link

System_CAPS_pubmethodEquals(Moniker^)

Compares two Monikers based upon their ID to determine if they are equal

System_CAPS_pubmethodEquals(Object^)

Compares this Moniker instance to the object passed as parameter. If the object is another Moniker, it compares them based upon their ID to determine if they are equal. Omitting Equals violates rule: OverrideMethodsOnComparableTypes.(Overrides Object::Equals(Object^).)

System_CAPS_pubmethodGetHashCode()

Uses the ID to generate the HashCode so that 2 Moniker's with the same ID's will return the same HashCode. Omitting this violates rule: OverrideGetHashCodeOnOverridingEquals.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodResurrect()

Resurrect this moniker.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(Moniker^, Moniker^)

Compares two Monikers based upon their ID to determine if they are equal. Overriding operator == to satisfy CA1036:OverrideMethodsOnComparableTypes

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(Moniker^, Moniker^)

Compares two Monikers based upon their ID to determine if moniker1's ID is greater than moniker2. Overriding operator > to satisfy CA1036:OverrideMethodsOnComparableTypes

System_CAPS_puboperatorSystem_CAPS_staticInequality(Moniker^, Moniker^)

Compares two Monikers based upon their ID to determine if they are unequal. Overriding operator != to satisfy CA1036:OverrideMethodsOnComparableTypes

System_CAPS_puboperatorSystem_CAPS_staticLessThan(Moniker^, Moniker^)

The MonikerName property value must be unique and represent only one element.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: