RolePlayerPropertyDescriptor Class
Provides additional run-time type information for a role property.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState := True)> _
Public Class RolePlayerPropertyDescriptor _
Inherits PropertyDescriptor
'Usage
Dim instance As RolePlayerPropertyDescriptor
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
public class RolePlayerPropertyDescriptor : PropertyDescriptor
[HostProtectionAttribute(SecurityAction::LinkDemand, SharedState = true)]
public ref class RolePlayerPropertyDescriptor : public PropertyDescriptor
public class RolePlayerPropertyDescriptor extends PropertyDescriptor
Remarks
Note
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: SharedState. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.
This class provides dynamic custom property information for a role property.
An ElementTypeDescriptor for a model element can return a collection of property descriptors for the properties of that model element. This collection can contain property descriptors for certain of the links in which the element is a role player. These property descriptors are instances of this class. For more information, see Defining Domain Relationships and the following methods of the ElementTypeDescriptor class: CreateRolePlayerPropertyDescriptor, GetDisplayProperties, and ShouldCreateRolePlayerPropertyDescriptor.
To create a customized role property descriptor, inherit from this class and override one or more of the members.
Inheritance Hierarchy
System.Object
System.ComponentModel.MemberDescriptor
System.ComponentModel.PropertyDescriptor
Microsoft.VisualStudio.Modeling.Design.RolePlayerPropertyDescriptor
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
RolePlayerPropertyDescriptor Members
Microsoft.VisualStudio.Modeling.Design Namespace
Other Resources
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |