共用方式為


SPConfigDatabase.UserName property

已過時。取得擁有之帳戶的設定資料庫之使用者的名稱。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property UserName As String
    Get
'用途
Dim instance As SPConfigDatabase
Dim value As String

value = instance.UserName
public string UserName { get; }

Property value

Type: System.String
包含使用者名稱的字串。

請參閱

參照

SPConfigDatabase class

SPConfigDatabase members

Microsoft.SharePoint.Administration namespace