SharePointOnlineCredentials constructor

Initializes a new instance of the SharePointOnlineCredentials object.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Sub New ( _
    username As String, _
    password As SecureString _
)
'Usage
Dim username As String
Dim password As SecureString

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

Parameters

  • username
    Type: System.String

    User name associated with the credentials.

See also

Reference

SharePointOnlineCredentials class

SharePointOnlineCredentials members

Microsoft.SharePoint.Client namespace