This documentation is archived and is not being maintained.

SecurityTokenInclusionMode Enumeration

A list of token inclusion requirements for messages.

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

public enum SecurityTokenInclusionMode

Member nameDescription
Supported by the .NET Compact FrameworkAlwaysToRecipientToken is always included in messages to the recipient and never to the initiator.
Supported by the .NET Compact FrameworkNeverThe 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.
Supported by the .NET Compact FrameworkOnceToken is included once.

The token must be included in only one message sent from the initiator to the recipient. References to the token may use an internal reference mechanism. Subsequent related messages sent between the recipient and the initiator may refer to the token using an external reference mechanism.

Supported by the .NET Compact FrameworkAlwaysToInitiatorToken is always included in messages to the initiator and never to the recipient.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

.NET Compact Framework

Supported in: 3.5