Namespace: Microsoft.IdentityModel.Web
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As SessionAuthenticationModule
Dim principal As IClaimsPrincipal
Dim context As String
Dim validFrom As DateTime
Dim validTo As DateTime
Dim isPersistent As Boolean
Dim returnValue As SessionSecurityToken

returnValue = instance.CreateSessionSecurityToken(principal, context, validFrom, validTo, isPersistent)

Syntax

Visual Basic
Public Function CreateSessionSecurityToken ( _
		principal As IClaimsPrincipal, _
		context As String, _
		validFrom As DateTime, _
		validTo As DateTime, _
		isPersistent As Boolean _
) As SessionSecurityToken
C#
public SessionSecurityToken CreateSessionSecurityToken (
		IClaimsPrincipal principal,
		string context,
		DateTime validFrom,
		DateTime validTo,
		bool isPersistent
)
C++
public:
SessionSecurityToken^ CreateSessionSecurityToken (
		IClaimsPrincipal^ principal, 
		String^ context, 
		DateTime validFrom, 
		DateTime validTo, 
		bool isPersistent
)
J#
public SessionSecurityToken CreateSessionSecurityToken (
		IClaimsPrincipal principal, 
		String context, 
		DateTime validFrom, 
		DateTime validTo, 
		boolean isPersistent
)
JScript
public function CreateSessionSecurityToken (
		principal : IClaimsPrincipal, 
		context : String, 
		validFrom : DateTime, 
		validTo : DateTime, 
		isPersistent : boolean
) : SessionSecurityToken

Parameters

principal
context
validFrom
validTo
isPersistent

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also