共用方式為


SharePointOnlineCredentials 建構函式

初始化SharePointOnlineCredentials物件的新執行個體。

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

語法

'宣告
Public Sub New ( _
    username As String, _
    password As SecureString _
)
'用途
Dim username As String
Dim password As SecureString

Dim instance As New SharePointOnlineCredentials(username, _
    password)
public SharePointOnlineCredentials(
    string username,
    SecureString password
)

參數

  • username
    類型:System.String

    認證相關聯的使用者名稱。

請參閱

參照

SharePointOnlineCredentials 類別

SharePointOnlineCredentials 成員

Microsoft.SharePoint.Client 命名空間