Share via


SharePointOnlineCredentials.GetAuthenticationCookie method (Uri, Boolean)

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

Syntax

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

returnValue = instance.GetAuthenticationCookie(url, _
    alwaysThrowOnFailure)
public string GetAuthenticationCookie(
    Uri url,
    bool alwaysThrowOnFailure
)

Parameters

Return value

Type: System.String

See also

Reference

SharePointOnlineCredentials class

SharePointOnlineCredentials members

GetAuthenticationCookie overload

Microsoft.SharePoint.Client namespace