Επεξεργασία

Κοινή χρήση μέσω


WebPartDescriptionCollection.Item[] Property

Definition

Gets a specific member of the collection according to its index or a unique string identifier.

Overloads

Item[Int32]

Gets a member of the collection based on its index within the collection.

Item[String]

Gets a member of the collection based on a unique string identifier.

Item[Int32]

Gets a member of the collection based on its index within the collection.

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

Parameters

index
Int32

The index of a particular WebPartDescription in a collection.

Property Value

A WebPartDescription at the specified index in the collection.

Remarks

The Item[] indexer allows you to access the underlying WebPartDescription objects in a WebPartDescriptionCollection collection by index.

See also

Applies to

Item[String]

Gets a member of the collection based on a unique string identifier.

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

Parameters

id
String

The string that serves as a unique identifier for a particular WebPartDescription in a collection.

Property Value

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

Remarks

The Item[] indexer enables you to access a WebPartDescription object in a WebPartDescriptionCollection collection according to a unique identifier.

See also

Applies to