共用方式為


關於 Configuration Manager 主控台檢視

Configuration Manager 主控台檢視會顯示在 Configuration Manager 控制檯的結果窗格中。 您可以建立自己的檢視,並使其可在樹視圖階層中的任何位置使用。

建立檢視元件

若要建立檢視,您必須在 內定義實作 IConsoleView2 介面的類別。

建立類別並建置元件之後,請將它放在 %ProgramFiles%\Microsoft 端點管理員\AdminConsole\bin 資料夾中,Configuration Manager 控制台載入它的位置。

如需詳細資訊,請參閱如何建立 Configuration Manager 系統管理員控制台檢視

建立節點 XML

當您建立 XML 檔案來描述顯示檢視之節點所需的位置、查詢、動作和資源時,檢視會整合到 Configuration Manager 控制台中。 節點 XML 檔案會放在 %ProgramFiles%\Microsoft Endpoint Manager\AdminConsole\ConsoleRoot\Extensions\Nodes 資料夾中,位於以節點之父節點 GUID 命名的資料夾下。

如需詳細資訊,請參閱 How to Create Node XML for a Configuration Manager Administrator Console View

如需節點 XML 的詳細資訊,請參閱 關於主控台節點

說明

F1 說明

您可以藉由在節點 XML 中指定 HelpID 檢視項目的 屬性,將 F1 說明支援新增至您的檢視 QueryDescription 。 在 屬性中 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詳細資訊,請參閱 How to Create Node XML for a Configuration Manager Console View

自訂說明

您也可以在 F1 說明系統外部顯示您自己的 .chm。 例如,您可以將按鈕新增至窗體,以開啟您的說明 .chm。 如需從 Windows 窗體開啟說明的詳細資訊,請參閱 .NET Framework 類別庫中的說明類別

另請參閱

關於主控台擴充功能如何建立 Configuration Manager 主控台
如何建立 Configuration Manager 主控台檢視的節點 XML