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

 

Verifies whether two elements have the same moniker.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

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

Parameters

context
Type: Microsoft.VisualStudio.Modeling::SerializationContext^

The serialization context.

moniker
Type: System::String^

The moniker.

element1
Type: Microsoft.VisualStudio.Modeling::ModelElement^

The first element to check.

element2
Type: Microsoft.VisualStudio.Modeling::ModelElement^

The second element to check.

This method is called when two new elements have the same moniker. This causes ambiguity during the moniker resolution.

Return to top
Show: