Share via


RolePlayerMenuCommand Class

Represents a command that can be added to the value list for a role property in the property window.

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

Syntax

'Declaration
Public MustInherit Class RolePlayerMenuCommand
'Usage
Dim instance As RolePlayerMenuCommand
public abstract class RolePlayerMenuCommand
public ref class RolePlayerMenuCommand abstract
public abstract class RolePlayerMenuCommand

Remarks

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.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Design.RolePlayerMenuCommand

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

RolePlayerMenuCommand Members

Microsoft.VisualStudio.Modeling.Design Namespace

RolePlayerPropertyDescriptor

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.