共用方式為


SPFederationAuthenticationModule.OnSessionSecurityTokenCreated Method

Handles the SessionSecurityTokenCreated() event.

Namespace:  Microsoft.SharePoint.IdentityModel
Assembly:  Microsoft.SharePoint.IdentityModel (in Microsoft.SharePoint.IdentityModel.dll)

Syntax

'Declaration
Protected Overrides Sub OnSessionSecurityTokenCreated ( _
    arguments As SessionSecurityTokenCreatedEventArgs _
)
'Usage
Dim arguments As SessionSecurityTokenCreatedEventArgs

Me.OnSessionSecurityTokenCreated(arguments)
protected override void OnSessionSecurityTokenCreated(
    SessionSecurityTokenCreatedEventArgs arguments
)

Parameters

  • arguments
    Type: SessionSecurityTokenCreatedEventArgs

    The data for the event.

Exceptions

Exception Condition
ArgumentNullException

[arguments] is null .

ArgumentException

arguments.SessionToken, arguments.SessionToken.ClaimsPrincipal, or arguments.SessionToken.ClaimsPrincipal.Identity is null or arguments.SessionToken.ClaimsPrincipal.Identity.Count is not equal to 1.

Remarks

This override does not have to reissue the session security token if the token exists.

See Also

Reference

SPFederationAuthenticationModule Class

SPFederationAuthenticationModule Members

Microsoft.SharePoint.IdentityModel Namespace