Download presentation
Presentation is loading. Please wait.
Published bySamantha Wade Modified over 9 years ago
4
What are add-ins Types of add-ins Creating add-ins Demos
8
Data and actions in your systems Accessed with APIs or scripts Data and actions in VMM Accessed with our cmdlets
14
Link add-ins place buttons here and open a new window
15
Action add-ins place buttons here and open new windows
16
View add-ins extend our pivot views and place buttons here Your WPF code controls and paints this pane.
23
Too Many Sources of Information
24
+ Too many sources of Information today! HP Virtual Connect elements not exposed in VMM Difficult to get an end-to-end view of connections HP Virtual Connect
29
This section defines global information such as name and version. This section defines what the Add-In looks like and how it behaves.
30
XML schema Add-in name shown in the properties page. Version Author name (or company name) The folder where the add-in will be stored. Will be placed in this folder: C:\Program Files\Microsoft System Center 2012\ Virtual Machine Manager\bin\AddInPipeline\ AddIns\[Domain_Username]\JFAddIns
31
ActionAddIns open new windows. Where to display the button. ActionType can either be URL or Application Optional icon Where we want the URL to go. Static. What displays under the icon in the ribbon.
38
All add-ins OnLoad OnUnload
41
View add-in public partial class ViewAddInControl : UserControl { public ViewAddInControl() { InitializeComponent(); } public void SetRolesForHost(string hostName, IEnumerable roleAndFeatureNameList) { this.headerText.Text = string.Format("Roles enabled for {0}:", hostName); this.rolesAndFeaturesText.Text = string.Join("\n", roleAndFeatureNameList.ToArray()); }
42
Using context and calling cmdlets public override void SetCurrentScope(AddInContextType scopeType, ContextObject scopeObject) { HostContext hostContext = scopeObject as HostContext; if (hostContext != null) { this.PowerShellContext.ExecuteScript ( string.Format( "get-wmiobject win32_serverfeature -computername {0} | select-object -expand Name", hostContext.ComputerName), (results, error) => this.viewAddInControl.SetRolesForHost(hostContext.ComputerName, results)); }
51
Complete your session evaluations today and enter to win prizes daily. Provide your feedback at a CommNet kiosk or log on at www.2013mms.com. Upon submission you will receive instant notification if you have won a prize. Prize pickup is at the Information Desk located in Attendee Services in the Mandalay Bay Foyer. Entry details can be found on the MMS website.
65
65
66
66
67
67
70
* - Subject to change
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.