在 Configuration Manager 中,動作ShowDialog會在 Configuration Manager 控制台中開啟屬性表或一般對話方塊。 您可以使用 動作 ShowDialog 來顯示您所建立的現有對話框或延伸模組對話框。
下列屬性和元素專屬於開啟對話框的動作:
Class項目ActionDescription屬性設定為ShowDialog。項目
DialogID是對話框中顯示之屬性表或對話框的識別碼。 它會比對 %ProgramFiles%\Microsoft Endpoint Manager\AdminConsole\XmlStorage\Extensions\Forms 資料夾中的窗體 XML 檔案名。
範例 ShowDialog 動作 XML
下列 XML 示範如何顯示識別碼為 PrototypeForm 的對話框:
<ActionDescription Class="ShowDialog" DisplayName="Test Action (dialog)" MnemonicDisplayName="Mnemonic" Description="Description"> <ShowOn> <string>DefaultHomeTab</string> <string>ContextMenu</string> </ShowOn>
<DialogId>PrototypeForm</DialogId>
</ActionDescription>
範例屬性 ShowDialog 動作 XML
下列屬性與元素專屬於將屬性頁新增至屬性屬性表的動作:
ActionVerb項目ActionDescription屬性設定為Properties。元素
DialogID會識別屬性表,其中包含要在對話框中顯示的Properties屬性頁。下列 XML 示範如何將屬性頁 (
PrototypeForm) 整合到屬性作選單選項中:
<ActionDescription ActionVerb="Properties" Class="ShowDialog"> <ShowOn> <string>DefaultHomeTab</string> <string>ContextMenu</string> </ShowOn> <DialogId>PrototypeForm</DialogId>
</ActionDescription>
如需建立和顯示對話框的詳細資訊,請參閱 關於控制檯表體。
另請參閱
關於 Configuration Manager 對話框Configuration Manager 動作如何建立 Configuration Manager 動作如何建立 Configuration Manager 屬性表的窗體 XML如何建立Configuration Manager 對話框的表單 XML如何尋找 Configuration Manager 節點 GUID