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.StringThe membership provider name for SharePoint Foundation to call to create, verify, manage, and authenticate users.
roleProvider
Type: System.StringThe name of the ASP.NET role provider as set in the web.config file.
See also
Reference
SPFormsAuthenticationProvider class
SPFormsAuthenticationProvider members