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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
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.SerializationContext
SerializationContext to store error/warning messages.
- moniker
Type: System.String
Moniker that both elements give.
- element1
Type: Microsoft.VisualStudio.Modeling.ModelElement
The first element giving the moniker.
- element2
Type: Microsoft.VisualStudio.Modeling.ModelElement
The 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.