SPLimitedWebPartCollection.Item property

Gets the WebPart with the specified identifier, or the GenericWebPart containing a control with the specified identifier, performing a case-insensitive comparison. Returns a null reference (Nothing in Visual Basic) if there are no matches.

Overload list

  Name Description
Public property Item[Guid] Gets the first WebPart in the collection with the specified storage key.
Public property Item[Int32] Gets the first WebPart in the collection at the specified index.
Public property Item[String] Gets the first WebPart in the collection with the specified identifier.

Top

See also

Reference

SPLimitedWebPartCollection class

SPLimitedWebPartCollection members

Microsoft.SharePoint.WebPartPages namespace