AuthenticatorBase.GetCredential 方法

获取基于密码的身份验证的凭据

命名空间:  Microsoft.SharePoint.Client
程序集:  Microsoft.SharePoint.Client.Phone.Runtime(位于 Microsoft.SharePoint.Client.Phone.Runtime.dll 中)

语法

声明
Public MustOverride Function GetCredential ( _
    uri As Uri, _
    authType As String _
) As NetworkCredential
用法
Dim instance As AuthenticatorBase
Dim uri As Uri
Dim authType As String
Dim returnValue As NetworkCredential

returnValue = instance.GetCredential(uri, _
    authType)
public abstract NetworkCredential GetCredential(
    Uri uri,
    string authType
)

参数

  • uri
    类型:System.Uri

    要从中检索凭据 URI。

返回值

类型:System.Net.NetworkCredential
凭据。

另请参阅

引用

AuthenticatorBase 类

AuthenticatorBase 成员

Microsoft.SharePoint.Client 命名空间