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
context
Type: Microsoft.VisualStudio.Modeling.SerializationContextThe serialization context.
moniker
Type: StringThe moniker.
element1
Type: Microsoft.VisualStudio.Modeling.ModelElementThe first element to check.
element2
Type: Microsoft.VisualStudio.Modeling.ModelElementThe second element to check.
Remarks
This method is called when two new elements have the same moniker. This causes ambiguity during the moniker resolution.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.