WebPartZoneCollection.Item[] 属性

定义

根据位置或唯一标识符返回集合中的特定成员。Returns a specific member of the collection according to its position or a unique identifier.

重载

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

参数

index
Int32

集合中特定 WebPartZone 的索引号。The index number for a particular WebPartZone within a collection.

属性值

WebPartZoneBase

位于集合中指定索引处的 WebPartZoneA WebPartZone at the specified index in the collection.

注解

Item[]属性使你可以 WebPartZone WebPartZoneCollection 通过使用表示其在集合中的序号位置的索引号来访问集合中的对象。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.

适用于

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

参数

id
String

集合中特定 WebPartZone 的唯一标识符。The unique identifier for a particular WebPartZone within the collection.

属性值

WebPartZoneBase

集合中 ID 等于 id 的值的第一个 WebPartZoneThe first WebPartZone in the collection whose ID equals the value of id.

注解

Item[]属性使您能够 WebPartZone WebPartZoneCollection 通过使用特定区域的字符串标识符来访问集合中的对象。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.

另请参阅

适用于