Share via


SPContentDatabaseCollection.Item property (Int32)

Gets the content database object at the specified index in the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    i As Integer _
) As SPContentDatabase
    Get
'Usage
Dim instance As SPContentDatabaseCollection
Dim i As Integer
Dim value As SPContentDatabase

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

Parameters

  • i
    Type: System.Int32

    A 32-bit integer that specifies the index of the content database.

Property value

Type: Microsoft.SharePoint.Administration.SPContentDatabase
A SPContentDatabase object that represents the content database.

Remarks

The Item property throws an IndexOutOfRangeException if the specified index is outside the valid range of indices for the collection.

In C#, this property is an indexer for the SPContentDatabaseCollection class.

See also

Reference

SPContentDatabaseCollection class

SPContentDatabaseCollection members

Item overload

Microsoft.SharePoint.Administration namespace