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)
Syntax
'Declaration
Public ReadOnly Property Item ( _
id As Guid _
) As SPContentDatabase
Get
'Usage
Dim instance As SPContentDatabaseCollection
Dim id As Guid
Dim value As SPContentDatabase
value = instance.Item(id)
public SPContentDatabase this[
Guid id
] { get; }
Parameters
id
Type: System.GuidA 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