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
- context
Type: System.Uri
- membershipProviderName
Type: System.String
- roleProviderName
Type: System.String
- username
Type: System.String
- password
Type: System.String
- options
Type: Microsoft.SharePoint.SPFormsAuthenticationOption
Return value
Type: System.IdentityModel.Tokens.SecurityToken