次の方法で共有


SimpleMonikerResolver.OnAmbiguousMoniker Method

Definition

Called when two new elements are giving the same moniker, which will cause ambiguity during moniker resolution. Note: the base implementation does nothing.

protected:
 virtual void OnAmbiguousMoniker(Microsoft::VisualStudio::Modeling::SerializationContext ^ context, System::String ^ moniker, Microsoft::VisualStudio::Modeling::ModelElement ^ element1, Microsoft::VisualStudio::Modeling::ModelElement ^ element2);
protected virtual void OnAmbiguousMoniker (Microsoft.VisualStudio.Modeling.SerializationContext context, string moniker, Microsoft.VisualStudio.Modeling.ModelElement element1, Microsoft.VisualStudio.Modeling.ModelElement element2);
abstract member OnAmbiguousMoniker : Microsoft.VisualStudio.Modeling.SerializationContext * string * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> unit
override this.OnAmbiguousMoniker : Microsoft.VisualStudio.Modeling.SerializationContext * string * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> unit
Protected Overridable 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