SharePointOnlineCredentials.UserName property
Gets the user name associated with the credentials that is passed in the SharePointOnlineCredentials constructor.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)
Syntax
'Declaration
Public ReadOnly Property UserName As String
Get
'Usage
Dim instance As SharePointOnlineCredentials
Dim value As String
value = instance.UserName
public string UserName { get; }
Property value
Type: System.String
See also
Reference
SharePointOnlineCredentials class