Share via


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)

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