共用方式為


SharePointOnlineCredentials.GetAuthenticationCookie 方法 (Uri, Boolean)

命名空間:  Microsoft.SharePoint.Client
組件:  Microsoft.SharePoint.Client.Runtime (在 Microsoft.SharePoint.Client.Runtime.dll 中)

語法

'宣告
Public Function GetAuthenticationCookie ( _
    url As Uri, _
    alwaysThrowOnFailure As Boolean _
) As String
'用途
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
)

參數

傳回值

類型:System.String

請參閱

參照

SharePointOnlineCredentials 類別

SharePointOnlineCredentials 成員

GetAuthenticationCookie 多載

Microsoft.SharePoint.Client 命名空間