WebPartManagerInternals.GetZoneID(WebPart) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得包含指定的 WebPart 或伺服器控制項的區域 ID。
public:
System::String ^ GetZoneID(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
public string GetZoneID (System.Web.UI.WebControls.WebParts.WebPart webPart);
member this.GetZoneID : System.Web.UI.WebControls.WebParts.WebPart -> string
Public Function GetZoneID (webPart As WebPart) As String
參數
傳回
字串,表示包含 webPart
之區域的 ID。
備註
GetZoneID方法會傳回包含參數所參考之控制項的區域識別碼 webPart
。
注意
的 Zone 屬性會 webPart
參考包含的實際區域物件 webPart
,而不是區域的識別碼。 如果 webPart
目前已關閉,其屬性的值 Zone 為 null
,而且 GetZoneID 方法會傳回在關閉之前的最後一個區域的識別碼 webPart
。