Presentation is loading. Please wait.

Presentation is loading. Please wait.

What are add-ins Types of add-ins Creating add-ins Demos.

Similar presentations


Presentation on theme: "What are add-ins Types of add-ins Creating add-ins Demos."— Presentation transcript:

1

2

3

4 What are add-ins Types of add-ins Creating add-ins Demos

5

6

7

8 Data and actions in your systems Accessed with APIs or scripts Data and actions in VMM Accessed with our cmdlets

9

10

11

12

13

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.

17

18

19

20

21

22

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

25

26

27

28

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.

32

33

34

35

36

37

38 All add-ins OnLoad OnUnload

39

40

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)); }

43

44

45

46

47

48

49

50

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.

52

53

54

55

56

57

58

59

60

61

62

63

64

65 65

66 66

67 67

68

69

70 * - Subject to change

71


Download ppt "What are add-ins Types of add-ins Creating add-ins Demos."

Similar presentations


Ads by Google