SPSecurityContext.SecurityTokenForFormsAuthentication method (Uri, String, String, String, String, SPFormsAuthenticationOption)

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function SecurityTokenForFormsAuthentication ( _
    context As Uri, _
    membershipProviderName As String, _
    roleProviderName As String, _
    username As String, _
    password As String, _
    options As SPFormsAuthenticationOption _
) As SecurityToken
'Usage
Dim context As Uri
Dim membershipProviderName As String
Dim roleProviderName As String
Dim username As String
Dim password As String
Dim options As SPFormsAuthenticationOption
Dim returnValue As SecurityToken

returnValue = SPSecurityContext.SecurityTokenForFormsAuthentication(context, _
    membershipProviderName, roleProviderName, _
    username, password, options)
public static SecurityToken SecurityTokenForFormsAuthentication(
    Uri context,
    string membershipProviderName,
    string roleProviderName,
    string username,
    string password,
    SPFormsAuthenticationOption options
)

Parameters

Return value

Type: System.IdentityModel.Tokens.SecurityToken

See also

Reference

SPSecurityContext class

SPSecurityContext members

SecurityTokenForFormsAuthentication overload

Microsoft.SharePoint namespace