FormsCredentials constructor (String, String, Dictionary<String, String>, Dictionary<String, SecureString>, String, CookieCollection)

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 SecureStrings values, the request method, and the collection of authentication cookies for the forms authentication logon.

Namespace:  Microsoft.Office.Server.Search.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
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 _
)
'Usage
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
)

Parameters

  • formsPage
    Type: System.String

    A string specifying the logon page URL.

  • errorPage
    Type: System.String

    A string specifying the error page URL.

  • method
    Type: System.String

    A string specifying the protocol method used for the request to the logon page.

See also

Reference

FormsCredentials class

FormsCredentials members

FormsCredentials overload

Microsoft.Office.Server.Search.Query namespace