FormsCredentials 构造函数 (String, String, 泛型 , 泛型 , String, CookieCollection) (Microsoft.Office.Server.Search.Federation)

Initializes a new instance of the FormsCredentials class with the logon and error page URLs, a dictionary object containing logon input stored as string values, a dictionary object containing logon input stored as System.Security.SecureStrings values, the request method, and the collection of authentication cookies for the forms authentication logon.

命名空间: Microsoft.Office.Server.Search.Federation
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
Public Sub New ( _
    formsPage As String, _
    errorPage As String, _
    pairs As Dictionary(Of String, String), _
    securepairs As Dictionary(Of String, SecureString), _
    method As String, _
    cookies As CookieCollection _
)
用法
Dim formsPage As String
Dim errorPage As String
Dim pairs As Dictionary(Of String, String)
Dim securepairs As Dictionary(Of String, SecureString)
Dim method As String
Dim cookies As CookieCollection

Dim instance As New FormsCredentials(formsPage, errorPage, pairs, securepairs, method, cookies)
public FormsCredentials (
    string formsPage,
    string errorPage,
    Dictionary<string,string> pairs,
    Dictionary<string,SecureString> securepairs,
    string method,
    CookieCollection cookies
)

参数

  • formsPage
    A string specifying the logon page URL.
  • errorPage
    A string specifying the error page URL.
  • pairs
    A collection of name/value pairs representing the logon page input.
  • securepairs
    A collection of name/value pairs stored as System.Security.SecureString values representing the logon page input.
  • method
    A string specifying the protocol method used for the request to the logon page.
  • cookies
    A System.Net.CookieCollection containing the forms authentication cookies.

另请参阅

参考

FormsCredentials 类
FormsCredentials 成员
Microsoft.Office.Server.Search.Federation 命名空间