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 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
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.
See Also

Tags :


Page view tracker