CoreDesignSurfaceSerializationBehaviorMonikerResolver::OnAmbiguousMoniker Method (SerializationContext^, String^, ModelElement^, ModelElement^)

 

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)

protected:
virtual void OnAmbiguousMoniker(
	SerializationContext^ context,
	String^ moniker,
	ModelElement^ element1,
	ModelElement^ element2
) override

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.

Return to top
Show: