Printer Friendly Version      Send     
Click to Rate and Give Feedback
SPContentDatabase.ID Property (Microsoft.SharePoint.Administration)

NOTE: This property is now obsolete.

Use the Id property of the SPPersistedObject class instead. (In Windows SharePoint Services 2.0, the ID property got the GUID of the content database and is maintained for backward compatibility.)

Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
<ObsoleteAttribute("ID is obsolete.  Use Id instead.", False)> _
Public ReadOnly Property ID As Guid
Visual Basic (Usage)
Dim instance As SPContentDatabase
Dim value As Guid

value = instance.ID
C#
[ObsoleteAttribute("ID is obsolete.  Use Id instead.", false)] 
public Guid ID { get; }

Property Value

A System.Guid object that specifies the content database.
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker