WSFederationMessage Members

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

Defines the base class from which all WS-Federation messages classes derive.

The following tables list the members exposed by the WSFederationMessage type.

Protected Constructors

  Name Description
  WSFederationMessage Initializes an instance of the WSFederationMessage class.

Top

Public Properties

  Name Description
public property Action Gets or sets the wa parameter of the message.
public property BaseUri Gets or sets the base URL to which the message applies.
public property Context Gets or sets the wctx parameter of the message.
public property Encoding Gets or sets the wencoding parameter of the message.
public property Parameters Gets the message parameters as a dictionary.

Top

Public Methods

(see also Protected Methods)

  Name Description
public methodstatic CreateFromFormPost Helper method to create a WS-Federation message from a Form Post received in the HttpRequest.
public methodstatic CreateFromNameValueCollection Creates a WS-Federation message from a NameValueCollection of parameters.
public methodstatic CreateFromUri Helper method to create a WS-Federation message from a URI. The parameters are assumed to be specified in the query string.
public method Equals  (Inherited from Object)
public methodstatic GetBaseUrl Helper method that extracts the base URL for a specified Uri.
public method GetHashCode  (Inherited from Object)
public method GetParameter Returns the specified parameter value from the parameters dictionary.
public method GetType  (Inherited from Object)
public methodstatic ParseQueryString Helper method to parse the query string in the specified URI into a NameValueCollection.
public method RemoveParameter Removes a parameter from the parameters dictionary.
public method SetParameter Sets the value of a parameter in the parameters dictionary.
public method SetUriParameter Sets the value of a parameter in the parameters dictionary. The value must be an absolute URI.
public method ToString  (Inherited from Object)
public methodstatic TryCreateFromUri Helper method to create a WS-Federation message from a URI. The parameters are assumed to be specified as a query string.
public method Write Writes the message to the output stream. Abstract method that all implementations of the WSFederationMessage class override.
public method WriteFormPost Serializes the message as a Form Post and returns the resulting Form together with its javascript as a string.
public method WriteQueryString Returns a query string created from the message parameters.

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
protected method Validate Validates the message.

Top

See Also

Reference

WSFederationMessage Class
Microsoft.IdentityModel.Protocols.WSFederation Namespace

Copyright © 2008 by Microsoft Corporation. All rights reserved.