Share via


How to Define a View in the Manifest

 

Applies To: System Center 2012 SP1

Views are defined in the manifest file. Like actions, views are displayed in the Virtual Machine Manager (VMM) console as ribbon buttons. When the user clicks the button, the view that is defined in a Microsoft .NET assembly is displayed. For more information about how to create an assembly that can be used by a view, see Base Classes.

To add a view add-in to the manifest file

  1. Inside the root XML node of the manifest file, create a node named ViewAddIn.

  2. Add an attribute named Contexts to the view node, and set the value to one or more context values. For more information about which context values you can use, see Context values.

  3. Add an attribute named AssemblyName to the view node, and set the value to the assembly that contains the code that is identified by the Name attribute. This is the file name of the assembly without the extension.

  4. Add an attribute named Name to the view node. The value of this XML attribute should be the name of the System.Addin.AddinAttribute attribute from the assembly that is identified by the AssemblyName XML attribute.

  5. Optionally, add the Icon and ShowInContextMenu attributes.

See Also

Scenario: Create a View Add-ins
How to Design a View
How to Use Context Objects with a View [VMMUISDK]