Configuration Manager 主控台檢視會顯示在 Configuration Manager 主控台的結果窗格中。 您可以建立自己的檢視,並使其可在樹狀檢視階層中的任何位置使用。
建立視圖組件
若要建立檢視,您必須在內定義實作 IConsoleView2 介面的類別。
建立類別並建置組件之後,請將其放在 %ProgramFiles%\Microsoft Endpoint Manager\AdminConsole\bin 資料夾中,由 Configuration Manager 主控台載入該資料夾。
如需詳細資訊,請參閱 如何建立 Configuration Manager 系統管理員主控台檢視。
建立節點 XML
當您建立描述顯示檢視之節點所需的位置、查詢、動作和資源之 XML 檔案時,該檢視會整合到 Configuration Manager 主控台中。 節點 XML 檔案位於 %ProgramFiles%\Microsoft Endpoint Manager\AdminConsole\ConsoleRoot\Extensions\Nodes 資料夾中,該資料夾以節點父節點的 GUID 命名。
如需詳細資訊,請參閱 如何建立 Configuration Manager 系統管理員主控台檢視的節點 XML。
如需節點 XML 的詳細資訊,請參閱 關於主控台節點。
說明
F1 說明
您可以在節點 XML 中指定 HelpID 檢視 QueryDescription 元素的屬性,將 F1 說明支援新增到檢視中。 在屬性中 HelpID ,指定 .chm 檔案的路徑,以及您要以下列格式顯示的主題:
HelpID="<path to chm>::<path to topic><topic name>.htm"
例如,下列QueryDescription元素宣告會從 Configuration Manager .chm 載入「如何建立套件」主題。 .chm 會假設位於 c:\chm 中。
注意事項
下面 (ConfigMgrObjectsControl.dll) 參考的組件是在如何建立 Configuration Manager 主控台自訂檢視中建立的。
<ViewAssemblyDescriptions> <ViewAssemblyDescription> <Assembly> ConfigMgrObjectsControl.dll </Assembly> <Type> Microsoft.ConfigurationManagement.AdminConsole.ConfigMgrObjectsView.ConfigMgrObjectsViewDescription </Type> <CustomData> <ConfigurationData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PropertyItemsData> <Properties> <string>MyProperty1</string> <string>MyProperty2</string> </Properties> <ClassName>_SDK</ClassName> </PropertyItemsData> </ConfigurationData> </CustomData> </ViewAssemblyDescription> </ViewAssemblyDescriptions> <Actions> </Actions> <Queries> <QueryDescription NamespaceGuid="a4b9867e-8fc8-4fae-8a1a-0c798c22e010" Type="WQL" HelpTopic="C:\chm\SystemCenterConfigurationManager_SDK.chm::/html/2c295b3b-e23c-4084-ad4a-8bba328ef6fc.htm"> <Query>GetData</Query> <ReturnedClassType>_SDK</ReturnedClassType> <Actions> <ActionDescription Class="ShowDialog" DisplayName="ShowDialogActionName" Description="ShowDialogActionDescription"> <ShowOn> <string>DefaultHomeTab</string> <string>ContextMenu</string> </ShowOn> <ResourceAssembly> <Assembly>UIExtensionsDemo.dll</Assembly> <Type>UIExtensionsDemo.Resources.resources</Type> </ResourceAssembly> <ImagesDescription> <ResourceAssembly> <Assembly>UIExtensionsDemo.dll</Assembly> <Type>UIExtensionsDemo.Resources.resources</Type> </ResourceAssembly> <ImageResourceName>ActionIcon</ImageResourceName> </ImagesDescription> <DialogId>MyDialog</DialogId> </ActionDescription> </Actions> </QueryDescription> </Queries>
如需使用QueryDescription元素的詳細資訊,請參閱 如何建立 Configuration Manager 主控台檢視的節點 XML。
自訂說明
您也可以在 F1 說明系統外部顯示您自己的 .chm。 例如,您可以在表單中新增按鈕以開啟 [說明] .chm。 如需從 Windows 表單開啟說明的詳細資訊,請參閱 .NET Framework 類別庫中的說明類別。
另請參閱
關於主控台擴充功能如何建立 Configuration Manager 主控台如何建立 Configuration Manager 主控台檢視的節點 XML