RolePlayerPropertyDescriptor Constructor (ModelElement, DomainRoleInfo, array<Attribute )
Initializes a new instance of the RolePlayerPropertyDescriptor class.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
‘선언
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
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
The ModelElement for which this RolePlayerPropertyDescriptor is representing a role property.
- domainRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
The metadata for the role of the model element in the link.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
RolePlayerPropertyDescriptor Class
RolePlayerPropertyDescriptor Overload
Microsoft.VisualStudio.Modeling.Design Namespace
Link()
SourcePlayer()
Store()