Share via


CoreDesignSurfaceSerializationBehaviorMonikerResolverBase.OnAmbiguousMoniker Method

Definition

Called when two new elements are giving the same moniker, which will cause ambiguity during moniker resolution.

protected:
 override void OnAmbiguousMoniker(Microsoft::VisualStudio::Modeling::SerializationContext ^ context, System::String ^ moniker, Microsoft::VisualStudio::Modeling::ModelElement ^ element1, Microsoft::VisualStudio::Modeling::ModelElement ^ element2);
protected override void OnAmbiguousMoniker (Microsoft.VisualStudio.Modeling.SerializationContext context, string moniker, Microsoft.VisualStudio.Modeling.ModelElement element1, Microsoft.VisualStudio.Modeling.ModelElement element2);
override this.OnAmbiguousMoniker : Microsoft.VisualStudio.Modeling.SerializationContext * string * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> unit
Protected Overrides Sub OnAmbiguousMoniker (context As SerializationContext, moniker As String, element1 As ModelElement, element2 As ModelElement)

Parameters

context
SerializationContext

SerializationContext to store error/warning messages.

moniker
String

Moniker that both elements give.

element1
ModelElement

The first element giving the moniker.

element2
ModelElement

The second element giving the same moniker.

Applies to