Condividi tramite


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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance(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