共用方式為


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

.NET Framework Security

See Also

Reference

CoreDesignSurfaceSerializationBehaviorMonikerResolver Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace