ElementNameProvider.CustomSetUniqueNameCore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在给定基名称和同级模型元素列表的元素上设置唯一名称。
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))
参数
- element
- ModelElement
要为其设置名称的元素。
- baseName
- String
要从其派生唯一名称的基名称。
- siblings
- IList<ModelElement>
可用于使名称唯一的同级元素列表。 此列表不包括传递的元素。
例外
DomainProperty 的类型不是字符串,请重写此方法以设置给定模型元素上的唯一名称。