共用方式為


SPFederationAuthenticationModule.SetPrincipalAndWriteSessionToken Method (SecurityToken)

Sets the principle claim and write session token.

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

Syntax

'Declaration
Public Sub SetPrincipalAndWriteSessionToken ( _
    securityToken As SecurityToken _
)
'Usage
Dim instance As SPFederationAuthenticationModule
Dim securityToken As SecurityToken

instance.SetPrincipalAndWriteSessionToken(securityToken)
public void SetPrincipalAndWriteSessionToken(
    SecurityToken securityToken
)

Parameters

See Also

Reference

SPFederationAuthenticationModule Class

SPFederationAuthenticationModule Members

SetPrincipalAndWriteSessionToken Overload

Microsoft.SharePoint.IdentityModel Namespace