Share via


SimpleMonikerResolver.OnAmbiguousMoniker Method

Verifies whether two elements have the same moniker.

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

Syntax

'Declaration
Protected Overridable Sub OnAmbiguousMoniker ( _
    context As SerializationContext, _
    moniker As String, _
    element1 As ModelElement, _
    element2 As ModelElement _
)
protected virtual void OnAmbiguousMoniker(
    SerializationContext context,
    string moniker,
    ModelElement element1,
    ModelElement element2
)
protected:
virtual void OnAmbiguousMoniker(
    SerializationContext^ context, 
    String^ moniker, 
    ModelElement^ element1, 
    ModelElement^ element2
)
abstract OnAmbiguousMoniker : 
        context:SerializationContext * 
        moniker:string * 
        element1:ModelElement * 
        element2:ModelElement -> unit  
override OnAmbiguousMoniker : 
        context:SerializationContext * 
        moniker:string * 
        element1:ModelElement * 
        element2:ModelElement -> unit
protected function OnAmbiguousMoniker(
    context : SerializationContext, 
    moniker : String, 
    element1 : ModelElement, 
    element2 : ModelElement
)

Parameters

  • moniker
    Type: String

    The moniker.

Remarks

This method is called when two new elements have the same moniker. This causes ambiguity during the moniker resolution.

.NET Framework Security

See Also

Reference

SimpleMonikerResolver Class

Microsoft.VisualStudio.Modeling Namespace