共用方式為


WebPartZone class

可讓您建立的 Web 組件容器的區域。這個類別的屬性可讓您指定區域會出現在您的Web Parts page區域本身的行為的方式。例如,當您建立區域物件時,您可以允許個人化和/或自訂 Web 組件放在區域內。

Inheritance hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.CompositeControl
        System.Web.UI.WebControls.WebParts.WebZone
          System.Web.UI.WebControls.WebParts.WebPartZoneBase
            System.Web.UI.WebControls.WebParts.WebPartZone
              Microsoft.SharePoint.WebPartPages.WebPartZone

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WebPartZone _
    Inherits WebPartZone _
    Implements INamingContainer
'用途
Dim instance As WebPartZone
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class WebPartZone : WebPartZone, 
    INamingContainer

備註

WebPartZone會繼承 [ System.Web.UI.Control.ID ] 屬性,也就是用來指定指派給WebPartZone控制項的程式設計識別項的字串值。WebPartZone控制項的ID屬性的值用來指派WebPart類別的執行個體的 [ WebPart.ZoneID ] 屬性。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

WebPartZone members

Microsoft.SharePoint.WebPartPages namespace