다음을 통해 공유


RolePlayerPropertyDescriptor Constructor (ModelElement, DomainRoleInfo, array<Attribute )

Initializes a new instance of the RolePlayerPropertyDescriptor class.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Sub New ( _
    element As ModelElement, _
    domainRole As DomainRoleInfo, _
    domainRoleInfoAttributes As Attribute() _
)
public RolePlayerPropertyDescriptor(
    ModelElement element,
    DomainRoleInfo domainRole,
    Attribute[] domainRoleInfoAttributes
)
public:
RolePlayerPropertyDescriptor(
    ModelElement^ element, 
    DomainRoleInfo^ domainRole, 
    array<Attribute^>^ domainRoleInfoAttributes
)
new : 
        element:ModelElement * 
        domainRole:DomainRoleInfo * 
        domainRoleInfoAttributes:Attribute[] -> RolePlayerPropertyDescriptor
public function RolePlayerPropertyDescriptor(
    element : ModelElement, 
    domainRole : DomainRoleInfo, 
    domainRoleInfoAttributes : Attribute[]
)

Parameters

  • domainRoleInfoAttributes
    Type: array<System.Attribute[]

    Attributes modifying property descriptor behavior.

Exceptions

Exception Condition
ArgumentNullException

The sourcePlayer or domainRole parameter is nulla null reference (Nothing in Visual Basic).

NotSupportedException

The domain role does not have a name.

ArgumentException

The domain role does not have a multiplicity of zero-to-one or of one-to-one.

.NET Framework Security

See Also

Reference

RolePlayerPropertyDescriptor Class

RolePlayerPropertyDescriptor Overload

Microsoft.VisualStudio.Modeling.Design Namespace

DisplayName

DomainRoleInfo

Link

SourcePlayer

Store