共用方式為


SharePointOnlineCredentials.UserName 屬性

取得傳遞SharePointOnlineCredentials建構函式的使用者名稱與認證相關聯。

命名空間:  Microsoft.SharePoint.Client
組件:  Microsoft.SharePoint.Client.Runtime (在 Microsoft.SharePoint.Client.Runtime.dll 中)

語法

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

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

屬性值

類型:System.String

請參閱

參照

SharePointOnlineCredentials 類別

SharePointOnlineCredentials 成員

Microsoft.SharePoint.Client 命名空間