共用方式為


SPGlobalAdmin.ConfigDatabaseUser Property

NOTE: This API is now obsolete.

The configuration database should not be accessed directly. (In Windows SharePoint Services 2.0, the ConfigDatabaseUser property got the user name of the administrator account for the configuration database, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("The configuration database should not be accessed directly.",  _
    False)> _
Public ReadOnly Property ConfigDatabaseUser As String
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As String

value = instance.ConfigDatabaseUser
[ObsoleteAttribute("The configuration database should not be accessed directly.", 
    false)]
public string ConfigDatabaseUser { get; }

Property Value

Type: System.String
A string that contains the user name of the administrator account.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace