Action Constructor (String, String, Int32, Object)

 

Initializes a new instance of the Action class using the display name, description, image index, and additional user-defined data as parameters

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

public Action(
    string displayName,
    string description,
    int imageIndex,
    object tag
)
public:
Action(
    String^ displayName,
    String^ description,
    int imageIndex,
    Object^ tag
)
new : 
        displayName:string *
        description:string *
        imageIndex:int *
        tag:Object -> Action
Public Sub New (
    displayName As String,
    description As String,
    imageIndex As Integer,
    tag As Object
)

Parameters

  • displayName
    Type: System.String

    A short display name for the action.

  • imageIndex
    Type: System.Int32

    The index of the image corresponding to this action item in the actions pane.

See Also

Action Overload
Action Class
Microsoft.ManagementConsole Namespace

Return to top