SharePointOnlineCredentials.GetAuthenticationCookie method (Uri)

Gets the authentication cookie.

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


Public Function GetAuthenticationCookie ( _
    url As Uri _
) As String
Dim instance As SharePointOnlineCredentials
Dim url As Uri
Dim returnValue As String

returnValue = instance.GetAuthenticationCookie(url)
public string GetAuthenticationCookie(
    Uri url


Return value

Type: System.String
The authentication cookie, which may be a null reference (Nothing in Visual Basic) or an empty string when the cookie cannot be retrieved.

See also


SharePointOnlineCredentials class

SharePointOnlineCredentials members

GetAuthenticationCookie overload

Microsoft.SharePoint.Client namespace