Méthode SessionSecurityTokenHandler.CreateSessionSecurityToken
Espace de noms: Microsoft.IdentityModel.Tokens
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)
Utilisation
Dim instance As SessionSecurityTokenHandler Dim principal As IClaimsPrincipal Dim context As String Dim endpointId As String Dim validFrom As DateTime Dim validTo As DateTime Dim returnValue As SessionSecurityToken returnValue = instance.CreateSessionSecurityToken(principal, context, endpointId, validFrom, validTo)
Syntaxe
'Déclaration
Public Overridable Function CreateSessionSecurityToken ( _
principal As IClaimsPrincipal, _
context As String, _
endpointId As String, _
validFrom As DateTime, _
validTo As DateTime _
) As SessionSecurityToken
public virtual SessionSecurityToken CreateSessionSecurityToken (
IClaimsPrincipal principal,
string context,
string endpointId,
DateTime validFrom,
DateTime validTo
)
public:
virtual SessionSecurityToken^ CreateSessionSecurityToken (
IClaimsPrincipal^ principal,
String^ context,
String^ endpointId,
DateTime validFrom,
DateTime validTo
)
public SessionSecurityToken CreateSessionSecurityToken (
IClaimsPrincipal principal,
String context,
String endpointId,
DateTime validFrom,
DateTime validTo
)
public function CreateSessionSecurityToken (
principal : IClaimsPrincipal,
context : String,
endpointId : String,
validFrom : DateTime,
validTo : DateTime
) : SessionSecurityToken
Paramètres
- principal
- context
- endpointId
- validFrom
- validTo
Cohérence de thread
Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.
Plateformes
Plateformes de développement
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Voir aussi
Référence
Classe SessionSecurityTokenHandler
Membres SessionSecurityTokenHandler
Espace de noms Microsoft.IdentityModel.Tokens