CoreDesignSurfaceSerializationBehaviorMonikerResolver.OnAmbiguousMoniker Method
Called when two new elements are giving the same moniker, which will cause ambiguity during moniker resolution.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Protected Overrides Sub OnAmbiguousMoniker ( _
context As SerializationContext, _
moniker As String, _
element1 As ModelElement, _
element2 As ModelElement _
)
protected override void OnAmbiguousMoniker(
SerializationContext context,
string moniker,
ModelElement element1,
ModelElement element2
)
protected:
virtual void OnAmbiguousMoniker(
SerializationContext^ context,
String^ moniker,
ModelElement^ element1,
ModelElement^ element2
) override
abstract OnAmbiguousMoniker :
context:SerializationContext *
moniker:string *
element1:ModelElement *
element2:ModelElement -> unit
override OnAmbiguousMoniker :
context:SerializationContext *
moniker:string *
element1:ModelElement *
element2:ModelElement -> unit
protected override function OnAmbiguousMoniker(
context : SerializationContext,
moniker : String,
element1 : ModelElement,
element2 : ModelElement
)
Parameters
context
Type: Microsoft.VisualStudio.Modeling.SerializationContextSerializationContext to store error/warning messages.
moniker
Type: System.StringMoniker that both elements give.
element1
Type: Microsoft.VisualStudio.Modeling.ModelElementThe first element giving the moniker.
element2
Type: Microsoft.VisualStudio.Modeling.ModelElementThe second element giving the same moniker.
.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.