Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SecurityTokenInclusionMode Enumeration

 

A list of token inclusion requirements for messages.

Namespace:   System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public enum class SecurityTokenInclusionMode

Member nameDescription
AlwaysToInitiator

Token is always included in messages to the initiator and never to the recipient.

AlwaysToRecipient

Token is always included in messages to the recipient and never to the initiator.

Never

The token is never included in messages but is referenced. The token must be known to the recipient out of band. The option does not work out of the box. You need to include custom credentials for this to work.

Once

Token is included once.

Instances of this class are used as parameters in many of the methods of the SecurityTokenParameters class and in its derived classes when creating binding elements and certificates.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft