DslDefinitionModelElementTypeDescriptor.CreateRolePlayerPropertyDescriptor(ModelElement, DomainRoleInfo, Attribute[]) Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Метод для создания PropertyDescriptor, которое описывает отношение и роль, которая будет отображаться в сетке.
protected:
override Microsoft::VisualStudio::Modeling::Design::RolePlayerPropertyDescriptor ^ CreateRolePlayerPropertyDescriptor(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayer, Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ targetRoleInfo, cli::array <Attribute ^> ^ sourceDomainRoleInfoAttributes);
protected override Microsoft.VisualStudio.Modeling.Design.RolePlayerPropertyDescriptor CreateRolePlayerPropertyDescriptor (Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayer, Microsoft.VisualStudio.Modeling.DomainRoleInfo targetRoleInfo, Attribute[] sourceDomainRoleInfoAttributes);
override this.CreateRolePlayerPropertyDescriptor : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRoleInfo * Attribute[] -> Microsoft.VisualStudio.Modeling.Design.RolePlayerPropertyDescriptor
Protected Overrides Function CreateRolePlayerPropertyDescriptor (sourceRolePlayer As ModelElement, targetRoleInfo As DomainRoleInfo, sourceDomainRoleInfoAttributes As Attribute()) As RolePlayerPropertyDescriptor
Параметры
- sourceRolePlayer
- ModelElement
ModelElement, исполняющий роль источника.
- targetRoleInfo
- DomainRoleInfo
DomainRoleInfo, описывающий целевую роль.
- sourceDomainRoleInfoAttributes
- Attribute[]
Атрибуты в источнике DomainRoleInfo
Возвращаемое значение
RolePlayerPropertyDescriptor