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.StringA string specifying the logon page URL.
errorPage
Type: System.StringA string specifying the error page URL.
pairs
Type: System.Collections.Generic.Dictionary<String, String>A collection of name/value pairs representing the logon page input.
securepairs
Type: System.Collections.Generic.Dictionary<String, SecureString>A collection of name/value pairs stored as System.Security.SecureString values representing the logon page input.
method
Type: System.StringA string specifying the protocol method used for the request to the logon page.
cookies
Type: System.Net.CookieCollectionThe collection of the forms authentication cookies.