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 | |
---|---|---|
Action() | Initializes a new instance of the Action class. |
|
Action(String, String) | Initializes a new instance of the Action class using the display name and the long description as parameters. |
|
Action(String, String, Int32) | Initializes a new instance of the Action class using the display name, description, and image index as parameters. |
|
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 | |
---|---|---|
Bulleted | Gets or sets the bulleted state of the action.(Inherited from ActionBase.) |
|
Checked | Gets or sets the checked state of the action.(Inherited from ActionBase.) |
|
Description | Gets or sets the status bar text.(Inherited from ActionsPaneExtendedItem.) |
|
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.) |
|
Enabled | Gets or sets the enabled state of the action.(Inherited from ActionBase.) |
|
ImageIndex | Gets or sets the index of the image for the actions pane extended item.(Inherited from ActionsPaneExtendedItem.) |
|
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.) |
|
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.) |
|
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 | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
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