SPFormsAuthenticationProvider Constructor (String, String)

Initializes a new instance of the [Microsoft.SharePoint.Administration.SPFormsAuthenticationProvider] class using the specified membership provider and role provider.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub New ( _
    membershipProvider As String, _
    roleProvider As String _
)
'Usage
Dim membershipProvider As String
Dim roleProvider As String

Dim instance As New SPFormsAuthenticationProvider(membershipProvider, _
    roleProvider)
public SPFormsAuthenticationProvider(
    string membershipProvider,
    string roleProvider
)

Parameters

  • membershipProvider
    Type: System.String

    The membership provider name for SharePoint Foundation to call to create, verify, manage, and authenticate users.

  • roleProvider
    Type: System.String

    The name of the ASP.NET role provider as set in the web.config file.

See Also

Reference

SPFormsAuthenticationProvider Class

SPFormsAuthenticationProvider Members

SPFormsAuthenticationProvider Overload

Microsoft.SharePoint.Administration Namespace