Share via


FormsCredentials Constructor (String, String, Dictionary<String, String>, String, CookieCollection)

Initializes a new instance of the FormsCredentials class with the logon and error page URLs, and a dictionary object containing the logon page input, the request method, and the collection of authentication cookies for the forms authentication logon.

Namespace:  Microsoft.Office.Server.Search.Federation
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), _
    method As String, _
    cookies As CookieCollection _
)
'Usage
Dim formsPage As String
Dim errorPage As String
Dim pairs As Dictionary(Of String, String)
Dim method As String
Dim cookies As CookieCollection

Dim instance As New FormsCredentials(formsPage, _
    errorPage, pairs, method, cookies)
public FormsCredentials(
    string formsPage,
    string errorPage,
    Dictionary<string, string> pairs,
    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.Federation Namespace