WSFederationMessage.Context Property

.NET Framework (current version)

Gets or sets the wctx parameter of the message.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public string Context { get; set; }

Property Value

Type: System.String

The value of the wctx parameter.

Specifies a context value that must be returned with the issued token if it is passed in the request. The value is opaque, that is, its semantics are known only by the originator of the message (typically a relying party – RP); it is not interpreted by the receiver of the message or any intermediaries. The wctx parameter is optional. Set the Context property to null or an empty string to remove the wctx parameter from the message.


If your application receives a WS-Federation message with the wctx parameter set, it should ensure that the same value is returned in any response to the sender, or forwarded if the message is passed on to another party.

.NET Framework
Available since 4.5
Return to top