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)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    iIndex As Integer _
) As SPDeletedSite
    Get
'Usage
Dim instance As SPDeletedSiteCollection
Dim iIndex As Integer
Dim value As SPDeletedSite

value = instance.Item(iIndex)
public SPDeletedSite this[
    int iIndex
] { get; }

Parameters

  • iIndex
    Type: System.Int32

    The 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.

See also

Reference

SPDeletedSiteCollection class

SPDeletedSiteCollection members

Microsoft.SharePoint.Administration namespace