次の方法で共有


ElementNameProvider.CustomSetUniqueNameCore Method

Definition

Sets unique name on the element given base name and list of sibling model elements.

protected:
 virtual void CustomSetUniqueNameCore(Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::String ^ baseName, System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ siblings);
protected virtual void CustomSetUniqueNameCore (Microsoft.VisualStudio.Modeling.ModelElement element, string baseName, System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.ModelElement> siblings);
abstract member CustomSetUniqueNameCore : Microsoft.VisualStudio.Modeling.ModelElement * string * System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.ModelElement> -> unit
override this.CustomSetUniqueNameCore : Microsoft.VisualStudio.Modeling.ModelElement * string * System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.ModelElement> -> unit
Protected Overridable Sub CustomSetUniqueNameCore (element As ModelElement, baseName As String, siblings As IList(Of ModelElement))

Parameters

element
ModelElement

Element to set name for.

baseName
String

Base name from which unique name is to be derived.

siblings
IList<ModelElement>

List of sibling elements which can be used to make the name unique. The list does not include the passed element.

Exceptions

DomainProperty is not of type string, please override this method to set unique name on the given model element..

Applies to