RolePlayerMenuCommand Class
Represents a command that can be added to the value list for a role property in the property window.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | RolePlayerMenuCommand() | Initializes a new instance of the RolePlayerMenuCommand class. |
| Name | Description | |
|---|---|---|
![]() | DoCommand() | When overridden in a derived class, executes the command. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | Returns a string that represents the current object.(Overrides Object::ToString().) |
A domain relationship that has a one-to-one or zero-to-one role can generate a role property. By default, every role property for a zero-to-one role has a command to remove the current model element.
To add a command to the role property list, derive a class from this class and add an instance of the derived class to the RolePlayerMenuCommands collection of the RolePlayerPropertyDescriptor for the role property of the model element.
Notes to Inheritors:
When you inherit from RolePlayerMenuCommand, you must override the following members: DoCommand and MenuText.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


