แก้ไข

แชร์ผ่าน


WebPartZoneCollection.Item[] Property

Definition

Returns a specific member of the collection according to its position or a unique identifier.

Overloads

Item[Int32]

Returns a specific member of the collection by passing in an integer.

Item[String]

Returns a specific member of the collection by passing in a unique identifier.

Item[Int32]

Returns a specific member of the collection by passing in an integer.

public:
 property System::Web::UI::WebControls::WebParts::WebPartZoneBase ^ default[int] { System::Web::UI::WebControls::WebParts::WebPartZoneBase ^ get(int index); };
public System.Web.UI.WebControls.WebParts.WebPartZoneBase this[int index] { get; }
member this.Item(int) : System.Web.UI.WebControls.WebParts.WebPartZoneBase
Default Public ReadOnly Property Item(index As Integer) As WebPartZoneBase

Parameters

index
Int32

The index number for a particular WebPartZone within a collection.

Property Value

A WebPartZone at the specified index in the collection.

Remarks

The Item[] property enables you to access a WebPartZone object within a WebPartZoneCollection collection by using an index number that represents its ordinal position in the collection.

See also

Applies to

Item[String]

Returns a specific member of the collection by passing in a unique identifier.

public:
 property System::Web::UI::WebControls::WebParts::WebPartZoneBase ^ default[System::String ^] { System::Web::UI::WebControls::WebParts::WebPartZoneBase ^ get(System::String ^ id); };
public System.Web.UI.WebControls.WebParts.WebPartZoneBase this[string id] { get; }
member this.Item(string) : System.Web.UI.WebControls.WebParts.WebPartZoneBase
Default Public ReadOnly Property Item(id As String) As WebPartZoneBase

Parameters

id
String

The unique identifier for a particular WebPartZone within the collection.

Property Value

The first WebPartZone in the collection whose ID equals the value of id.

Remarks

The Item[] property enables you to access a WebPartZone object within a WebPartZoneCollection collection by using a string identifier for a particular zone. All matching on string identifiers is case-insensitive.

See also

Applies to