Export (0) Print
Expand All

WSFederationMessage.CreateFromFormPost Method

.NET Framework 4.5

Creates a WS-Federation message from the form post received in the specified request.

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

public static WSFederationMessage CreateFromFormPost(
	HttpRequestBase request


Type: System.Web.HttpRequestBase

The request that contains the form post.

Return Value

Type: System.IdentityModel.Services.WSFederationMessage
The message that was created or null if a message cannot be created.


request is null.

If a message can be created, the method returns an appropriate implementation of WSFederationMessage based on the wa parameter submitted in the form post; for example, if wa parameter is "wsignout1.0" then a SignOutRequestMessage object is returned.

Gets the base URL and the collection of form variables submitted by the client from the request and invokes the CreateFromNameValueCollection method.

.NET Framework

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

© 2014 Microsoft