WSFederationMessage.CreateFromFormPost Method (HttpRequestBase)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

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.

Exception Condition
ArgumentNullException

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
Available since 4.5
Return to top
Show: