SPContentDatabaseCollection.Item Property (Guid)

Gets the content database object with the specified GUID 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 ( _
    id As Guid _
) As SPContentDatabase
    Get
'Usage
Dim instance As SPContentDatabaseCollection
Dim id As Guid
Dim value As SPContentDatabase

value = instance(id)
public SPContentDatabase this[
    Guid id
] { get; }

Parameters

  • id
    Type: System.Guid

    A GUID that identifies the content database.

Property Value

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

Remarks

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

See Also

Reference

SPContentDatabaseCollection Class

SPContentDatabaseCollection Members

Item Overload

Microsoft.SharePoint.Administration Namespace