共用方式為


SPDatabase.Username property

取得或設定用於 SQL 驗證登入的使用者名稱。

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

Syntax

'宣告
Public Property Username As String
    Get
    Set
'用途
Dim instance As SPDatabase
Dim value As String

value = instance.Username

instance.Username = value
public string Username { get; set; }

Property value

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

請參閱

參照

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace