Simple Add-ins Overview

Simple Add-ins Overview

The information in this topic applies only to System Center 2012 SP1.

Simple add-ins do one of two things, they either call custom code or call a predefined action. They do not provide views to the Virtual Machine Manager (VMM) console. You can declare your add-in to perform one of the two predefined actions: display a Web page in the console, or run a program. Otherwise the add-in would call custom code.

Predefined actions

Predefined action add-ins are defined in the manifest file. To configure an add-in to run a predefined action, set the ActionType attribute of the add-in in the manifest to either URL or Application. The ordinarily optional attribute ActionParam is now required. If you had chosen URL as the ActionType, then the ActionParam attribute should be set to the URL of webpage you want to display. If the ActionType was set to Application, the ActionParam represents the file path of the application you want to run.

Custom actions

To configure an add-in to run a custom code, set the ActionType attribute of the add-in to Code. The ordinarily optional attribute AssemblyName is now required. The value of this attribute should be set to the file name of the assembly that contains the code for the add-in.

In the assembly identified by the AssemblyName attribute, a System.Addin.AddinAttribute attribute must be applied to a class that inherits from the Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.ActionAddInBase base class. This attribute takes one parameter when referenced, the name of the add-in. This name must match the Name attribute of the add-in declaration in the manifest. For more information about the Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.ActionAddInBase class, see Base Classes

See Also

Leave a Comment
  • Please add 4 and 7 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
Page 1 of 1 (1 items)