Share via


ToolZone 建構函式

定義

將一個或多個 WebPartDisplayMode 物件與特定區域類型 ToolZone 相關聯,當網頁處於適當網頁顯示模式時,可以顯示該區域。

多載

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 。 這可讓工具區域顯示在相關聯的顯示模式中。

注意

在 Web 元件控制項集所提供的區域實作 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 模式顯示。

另請參閱

適用於