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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

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

public ref class RolePlayerMenuCommand abstract 

NameDescription
System_CAPS_protmethodRolePlayerMenuCommand()

Initializes a new instance of the RolePlayerMenuCommand class.

NameDescription
System_CAPS_pubpropertyMenuText

When overridden in a derived class, gets the name of the command.

System_CAPS_pubpropertyResult

Gets or sets a value that represents the result of the command.

NameDescription
System_CAPS_pubmethodDoCommand()

When overridden in a derived class, executes the command.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

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.

Return to top
Show: