語言

ToolZone 建構函式

定義

將一個或多個 WebPartDisplayMode 物件與特定類型的 ToolZone 區域關聯,使該區域在頁面處於適當頁面顯示模式時能顯示。

多載

名稱 Description
ToolZone(ICollection)

將一組 WebPartDisplayMode 物件與特定 ToolZone 區域關聯,使該區域能以適當的頁面顯示模式顯示。

ToolZone(WebPartDisplayMode)

將單一 WebPartDisplayMode 物件與特定 ToolZone 區域關聯,使該區域能以適當的頁面顯示模式顯示。

ToolZone(ICollection)

將一組 WebPartDisplayMode 物件與特定 ToolZone 區域關聯,使該區域能以適當的頁面顯示模式顯示。

protected:
 ToolZone(System::Collections::ICollection ^ associatedDisplayModes);
protected ToolZone(System.Collections.ICollection associatedDisplayModes);
new System.Web.UI.WebControls.WebParts.ToolZone : System.Collections.ICollection -> System.Web.UI.WebControls.WebParts.ToolZone
Protected Sub New (associatedDisplayModes As ICollection)

參數

associatedDisplayModes
ICollection

一 ICollection 組 WebPartDisplayMode 決定區域何時可顯示的物件。

例外狀況

associatedDisplayModes參數等null於或為0。

備註

ToolZone建構子用於將區域ToolZone與一種或多種顯示模式關聯起來。 這使得工具區能在相關的顯示模式中顯示。

Note

在 Web Parts 控制集所提供的區域實作 ToolZone 中,每個區域只對應一種顯示模式。 然而,利用建構子的過載,可以將自訂區域與多種顯示模式關聯起來。

另請參閱

適用於

ToolZone(WebPartDisplayMode)

將單一 WebPartDisplayMode 物件與特定 ToolZone 區域關聯,使該區域能以適當的頁面顯示模式顯示。

protected:
 ToolZone(System::Web::UI::WebControls::WebParts::WebPartDisplayMode ^ associatedDisplayMode);
protected ToolZone(System.Web.UI.WebControls.WebParts.WebPartDisplayMode associatedDisplayMode);
new System.Web.UI.WebControls.WebParts.ToolZone : System.Web.UI.WebControls.WebParts.WebPartDisplayMode -> System.Web.UI.WebControls.WebParts.ToolZone
Protected Sub New (associatedDisplayMode As WebPartDisplayMode)

參數

associatedDisplayMode
WebPartDisplayMode

該區域 WebPartDisplayMode 決定何時可顯示。

例外狀況

參數 associatedDisplayMode 等於 null。

備註

ToolZone建構子用於將區域ToolZone與單一顯示模式關聯起來。 這讓工具區在頁面進入該顯示模式時能顯示出來。 例如, CatalogZone 控制項只能在模式中 CatalogDisplayMode 顯示。

另請參閱

適用於