MonikerKey Class

 

Represents the key of a Moniker.

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

System::Object
  Microsoft.VisualStudio.Modeling::MonikerKey

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

NameDescription
System_CAPS_pubmethodMonikerKey(String^, Guid, Guid, Store^)

Initializes a new instance of MonikerKey with the specified GUID and store.

NameDescription
System_CAPS_pubpropertyDomainClassId

Gets the GUID of the domain class associated with this MonikerKey.

System_CAPS_pubpropertyDomainRelationshipId

Gets the GUID of the domain relationship associated with this MonikerKey.

System_CAPS_pubpropertyMonikerName

Gets the name of the MonikerKey used to resolve the moniker.

NameDescription
System_CAPS_pubmethodCompareTo(MonikerKey^)

Compares one MonikerKey to another one.

System_CAPS_pubmethodEquals(MonikerKey^)

Returns whether or not two MonikerKey objects are identical.

System_CAPS_pubmethodEquals(Object^)

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

System_CAPS_pubmethodGetHashCode()

Generates HashCode based on all 3 equality comparisons performed by CompareTo() For a MonikerKey that will return true for CompareTo, the GetHashCode will match value returned by this.GetHashCode Omitting this violates rule: OverrideGetHashCodeOnOverridingEquals.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(MonikerKey^, MonikerKey^)

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

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(MonikerKey^, MonikerKey^)

Compares two MonikerKeys based upon their ID to determine if monikerKey1's ID is greater than monikerKey2. Overriding operator > to satisfy CA1036:OverrideMethodsOnComparableTypes

System_CAPS_puboperatorSystem_CAPS_staticInequality(MonikerKey^, MonikerKey^)

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

System_CAPS_puboperatorSystem_CAPS_staticLessThan(MonikerKey^, MonikerKey^)

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: