Share via


Action Class

 

This is a sealed class that represents an action that is defined by a snap-in. This action may be exposed through various UI elements. An instance of the Action class creates a Triggered event when the action is triggered.

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

Inheritance Hierarchy

System.Object
  Microsoft.ManagementConsole.ActionsPaneItem
    Microsoft.ManagementConsole.ActionsPaneExtendedItem
      Microsoft.ManagementConsole.ActionBase
        Microsoft.ManagementConsole.Action

Syntax

public sealed class Action : ActionBase
public ref class Action sealed : ActionBase
[<Sealed>]
type Action = 
    class
        inherit ActionBase
    end
Public NotInheritable Class Action
    Inherits ActionBase

Constructors

Name Description
System_CAPS_pubmethod Action()

Initializes a new instance of the Action class.

System_CAPS_pubmethod Action(String, String)

Initializes a new instance of the Action class using the display name and the long description as parameters.

System_CAPS_pubmethod Action(String, String, Int32)

Initializes a new instance of the Action class using the display name, description, and image index as parameters.

System_CAPS_pubmethod Action(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

Properties

Name Description
System_CAPS_pubproperty Bulleted

Gets or sets the bulleted state of the action.(Inherited from ActionBase.)

System_CAPS_pubproperty Checked

Gets or sets the checked state of the action.(Inherited from ActionBase.)

System_CAPS_pubproperty Description

Gets or sets the status bar text.(Inherited from ActionsPaneExtendedItem.)

System_CAPS_pubproperty DisplayName

Gets or sets the display name for the action. If the MnemonicDisplayName property is not empty, it is used instead of the DisplayName property for UI that supports mnemonics.(Inherited from ActionsPaneExtendedItem.)

System_CAPS_pubproperty Enabled

Gets or sets the enabled state of the action.(Inherited from ActionBase.)

System_CAPS_pubproperty ImageIndex

Gets or sets the index of the image for the actions pane extended item.(Inherited from ActionsPaneExtendedItem.)

System_CAPS_pubproperty LanguageIndependentName

Gets or sets a language-independent name that uniquely identifies an item in the set of actions for an object. If this value is not specified or is empty, the value of the DisplayName property is used.(Inherited from ActionsPaneExtendedItem.)

System_CAPS_pubproperty MnemonicDisplayName

Gets or sets the mnemonic display name for the action. If available, this value is used in UI that supports mnemonics, such as menus and actions panes.(Inherited from ActionsPaneExtendedItem.)

System_CAPS_pubproperty Tag

Gets or sets an optional user-defined value that is useful in identifying an event when it is handled.(Inherited from ActionsPaneItem.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent Triggered

Occurs when the action is triggered.

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

Microsoft.ManagementConsole Namespace

Return to top