How to Define a Custom Action Add-in in the Manifest
Applies To: System Center 2012 SP1
Custom actions are add-ins that display on the Virtual Machine Manager (VMM) console as ribbon buttons. When the user clicks the button, the custom code that is defined in a Microsoft .NET assembly will be invoked. For more information about how to create an assembly that can be called by a custom action, see Base Classes.
To add a custom action add-in to the manifest file
Inside the root XML node of the manifest file, create a node named
ActionAddIn
.Add an attribute named
Name
to the action node. The value of this XML attribute must be the name of the T:System.Addin.AddinAttribute attribute from the assembly that is identified by theAssemblyName
XML attribute.Add an attribute named
Contexts
to the action node, and set the value to one or more context values. For more information about which context values you can use, see Context values.Add an attribute named
ActionType
to the action node, and set the value toCode
.Add an attribute named
AssemblyName
to the action node, and set the value to the assembly that contains the code that is identified by theName
attribute. This is the file name of the assembly without the extension.Optionally, add the
Icon
,SmallIcon
, orShowInContextMenu
attributes.To set the accessibility (shortcut) keys for the ribbon button, add the
AccessKeys
attribute and set the value to the shortcut keys as described in the Context values topic.
See Also
Scenario: Define an Add-in
How to Define a Manifest
How to Create an Action Add-in
How to Use Context Objects
Context values