SPDeletedSiteCollection.Item Property
Gets the deleted site at the specified index of the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
iIndex As Integer _
) As SPDeletedSite
Get
'Usage
Dim instance As SPDeletedSiteCollection
Dim iIndex As Integer
Dim value As SPDeletedSite
value = instance(iIndex)
public SPDeletedSite this[
int iIndex
] { get; }
Parameters
iIndex
Type: System.Int32The zero-based index of the site in the collection.
Property Value
Type: Microsoft.SharePoint.Administration.SPDeletedSite
The deleted site at the specified index of the collection.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The value of iIndex is less than 0, or is greater than or equal to the total number of the deleted sites in the collection. |
Remarks
This method returns the deleted site at the index specified by the iIndex parameter of the collection.