大网数据广告活动
Windows Server 管理

Add an iFrame to a tool extension

· 52CE 我爱测

Develop a tool extension Windows Admin Center SDK (Project Honolulu) - add an iFrame to a tool extension

In this article, we will add an iFrame to a new, empty tool extension we have created with the Windows Admin Center CLI.

Prepare your environment

If you haven't already, follow the directions in develop a tool extension to prepare your environment and create a new, empty tool extension.

Add a module to your project

Add a new empty module to your project, to which we will add an iFrame in the next step.

Add an iFrame to your module

Now we'll add an iFrame to that new, empty module that we just created.

In \src\app, browse into your module folder, then open file {!module-name}.component.html, found with the following naming convention:

Value Explanation Example filename
{!module-name} Your module name (lower case, spaces replaced with dashes) manage-foo-works-portal.component.html

Add the following content to the html file:

<div>
  <iframe  style="height: 850px;" src="https://www.bing.com"></iframe>
</div>

That's it, you've added an iFrame to your extension. Next, you can build and side load your extension in Windows Admin Center to see the results.

Note: Content Security Policy (CSP) settings could prevent some sites from rendering in an iFrame within Windows Admin Center. You can learn more about this here.

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 09/18/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。