Export (0) Print
Expand All

MonikerKey Class

Represents the key of a Moniker.

Object
  Microsoft.VisualStudio.Modeling.MonikerKey

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

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

The MonikerKey type exposes the following members.

  NameDescription
Public methodMonikerKeyInitializes a new instance of MonikerKey with the specified GUID and store.
Top

  NameDescription
Public propertyDomainClassIdGets the GUID of the domain class associated with this MonikerKey.
Public propertyDomainRelationshipIdGets the GUID of the domain relationship associated with this MonikerKey.
Public propertyMonikerNameGets the name of the MonikerKey used to resolve the moniker.
Top

  NameDescription
Public methodCompareToCompares one MonikerKey to another one.
Public methodEquals(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).)
Public methodEquals(MonikerKey)Returns whether or not two MonikerKey objects are identical.
Public methodGetHashCodeGenerates 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.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public operatorStatic memberEqualityCompares two MonikerKeys based upon their ID to determine if they are equal. Overriding operator == to satisfy CA1036:OverrideMethodsOnComparableTypes
Public operatorStatic memberGreaterThanCompares two MonikerKeys based upon their ID to determine if monikerKey1's ID is greater than monikerKey2. Overriding operator > to satisfy CA1036:OverrideMethodsOnComparableTypes
Public operatorStatic memberInequalityCompares two MonikerKeys based upon their ID to determine if they are unequal. Overriding operator != to satisfy CA1036:OverrideMethodsOnComparableTypes
Public operatorStatic memberLessThan
Top

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