Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Server Technologies
SDK Documentation
SPSite Class
SPSite Properties
 ContentDatabase Property
SPSite.ContentDatabase Property (Microsoft.SharePoint)
Gets the content database that is associated with the site collection.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public ReadOnly Property ContentDatabase As SPContentDatabase
Visual Basic (Usage)
Dim instance As SPSite
Dim value As SPContentDatabase

value = instance.ContentDatabase
C#
public SPContentDatabase ContentDatabase { get; }

Property Value

An SPContentDatabase object that represents the content database.
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker