Partager via


SPSecurityContext.SecurityTokenForFormsAuthentication - Méthode (Uri, String, String, String, String, SPFormsAuthenticationOption)

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function SecurityTokenForFormsAuthentication ( _
    context As Uri, _
    membershipProviderName As String, _
    roleProviderName As String, _
    username As String, _
    password As String, _
    options As SPFormsAuthenticationOption _
) As SecurityToken
'Utilisation
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
)

Paramètres

Valeur renvoyée

Type : System.IdentityModel.Tokens.SecurityToken

Voir aussi

Référence

SPSecurityContext classe

SPSecurityContext - Membres

SecurityTokenForFormsAuthentication - Surcharge

Microsoft.SharePoint - Espace de noms