DslDefinitionModelDomainModel.CreateElementLink 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建指定类型的元素链接。
public:
override Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Microsoft::VisualStudio::Modeling::Partition ^ partition, Type ^ elementLinkType, cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments);
public override sealed Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Microsoft.VisualStudio.Modeling.Partition partition, Type elementLinkType, Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments, Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments);
override this.CreateElementLink : Microsoft.VisualStudio.Modeling.Partition * Type * Microsoft.VisualStudio.Modeling.RoleAssignment[] * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Overrides NotOverridable Function CreateElementLink (partition As Partition, elementLinkType As Type, roleAssignments As RoleAssignment(), propertyAssignments As PropertyAssignment()) As ElementLink
参数
- partition
- Partition
要在其中创建元素的分区。
- elementLinkType
- Type
属于此域模型的元素链接类型。
- roleAssignments
- RoleAssignment[]
新链接的关系角色分配列表。
- propertyAssignments
- PropertyAssignment[]
新的元素属性赋值。
返回
已创建元素链接。