共用方式為


Windows Azure Pack Management Portal Client-Side延伸模組檢視

 

適用于:Windows Azure Pack

Hello World範例Visual Studio Project路徑:Microsoft.WAP.Samples.HelloWorld.TenantExtension\Views 和 \Microsoft.WAP.Samples.HelloWorld.AdminExtension\Views

檢視是標準 ASP.NET .cshtml 頁面,用來在系統管理員擴充功能的 Windows Azure Pack 管理入口網站中顯示設定使用者介面。 此設定可以包含配額和服務範圍選項等元素。 .cshtml 會顯示為管理入口網站內容區域中的部分檢視。 因此,遵循範本之有效標籤和格式設定的所有規則。 不過,不會發生實際的範本化。 如需範本的詳細資訊,請參閱Windows Azure Pack Management Portal Client-Side 擴充功能範本

若要讓檢視在系統管理員的 Windows Azure Pack 管理入口網站中順暢顯示,包含全入口網站樣式和腳本是自動的。 如果您的 .cshtml 頁面需要進一 @section 步的樣式或腳本,請將它們放在稱為 ServiceOfferScripts 的中。 例如:

@section ServiceOfferScripts {
  <link rel="stylesheet" href="@Url.Content("~/Content/DomainAdmin/Styles/DomainAdmin.ServiceOffer.css")" type="text/css" />
  <script src="@Url.Content("~/Content/DomainAdmin/Scripts/DomainAdmin.ServiceOffer.js")"></script>
}

另請參閱

Windows Azure Pack Management Portal 使用者介面擴充功能