命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function SecurityTokenForFormsAuthentication ( _
context As Uri, _
membershipProviderName As String, _
roleProviderName As String, _
username As String, _
password As String, _
options As SPFormsAuthenticationOption _
) As SecurityToken
用法
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
)
参数
- context
类型:System.Uri
- membershipProviderName
类型:System.String
- roleProviderName
类型:System.String
- username
类型:System.String
- password
类型:System.String
返回值
类型:System.IdentityModel.Tokens.SecurityToken