RolePlayerPropertyDescriptor - конструктор (ModelElement, DomainRoleInfo, array<Attribute )
Инициализирует новый экземпляр класса RolePlayerPropertyDescriptor.
Пространство имен: Microsoft.VisualStudio.Modeling.Design
Сборка: Microsoft.VisualStudio.Modeling.Sdk.11.0 (в Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Синтаксис
'Декларация
Public Sub New ( _
element As ModelElement, _
domainRole As DomainRoleInfo, _
domainRoleInfoAttributes As Attribute() _
)
public RolePlayerPropertyDescriptor(
ModelElement element,
DomainRoleInfo domainRole,
Attribute[] domainRoleInfoAttributes
)
Параметры
- element
Тип: Microsoft.VisualStudio.Modeling.ModelElement
ModelElement, для которого данный RolePlayerPropertyDescriptor представляет роль свойства.
- domainRole
Тип: Microsoft.VisualStudio.Modeling.DomainRoleInfo
Метаданные для роли элемента модели в связи.
- domainRoleInfoAttributes
Тип: array<System.Attribute[]
Атрибуты изменение расширения функциональности дескриптора свойства.
Исключения
Исключение | Условие |
---|---|
ArgumentNullException | Значение параметра sourcePlayer или domainRole — nullссылка NULL (Nothing в Visual Basic). |
NotSupportedException | Роль домена не имеющий имя. |
ArgumentException | Роль домена не имеет количество элементов нул-к-одн или взаимнооднозначному. |
Безопасность платформы .NET Framework
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Использование библиотек из не вполне надежного кода.
См. также
Ссылки
RolePlayerPropertyDescriptor Класс
RolePlayerPropertyDescriptor - перегрузка
Microsoft.VisualStudio.Modeling.Design - пространство имен
Link
SourcePlayer
Store