Share via


SharePointOnlineCredentials.GetAuthenticationCookie method (Uri)

Gets the authentication cookie.

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

Syntax

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

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

Parameters

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

Reference

SharePointOnlineCredentials class

SharePointOnlineCredentials members

GetAuthenticationCookie overload

Microsoft.SharePoint.Client namespace