SharePointOnlineCredentials.GetCredential 方法
取得網路認證,以指定的 URI 和驗證類型。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Runtime (在 Microsoft.SharePoint.Client.Runtime.dll 中)
語法
'宣告
Public Function GetCredential ( _
uri As Uri, _
authType As String _
) As NetworkCredential
'用途
Dim instance As SharePointOnlineCredentials
Dim uri As Uri
Dim authType As String
Dim returnValue As NetworkCredential
returnValue = instance.GetCredential(uri, _
authType)
public NetworkCredential GetCredential(
Uri uri,
string authType
)
參數
uri
類型:System.Uri將傳送認證 URI。
authType
類型:System.String驗證類型。
傳回值
類型:System.Net.NetworkCredential
方法一律會傳回null 參考 (未執行任何動作 於 Visual Basic 中)。
實作
ICredentials.GetCredential(Uri, String)
請參閱
參照
SharePointOnlineCredentials 類別