NOTE: This property is now obsolete.
Use the
Id property of the
SPPersistedObject class instead. (In Windows SharePoint Services 2.0, the
ID property returns the GUID of the content database and is maintained for backward compatibility.)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)

Syntax
Visual Basic (Declaration)
<ObsoleteAttribute("ID is obsolete. Use Id instead.", False)> _
Public ReadOnly Property ID As Guid
Dim instance As SPContentDatabase
Dim value As Guid
value = instance.ID
[ObsoleteAttribute("ID is obsolete. Use Id instead.", false)]
public Guid ID { get; }
Property Value
A
System.Guid object that specifies the content database.

See Also