Export (0) Print
Expand All

WSFederationMessage.CreateFromUri Method

.NET Framework 4.5

Creates a WS-Federation message from the specified URI. The parameters are assumed to be specified in the query string.

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

public static WSFederationMessage CreateFromUri(
	Uri requestUri


Type: System.Uri

The URI from which to create the message. Message parameters are specified in the query string. The wa parameter must be present.

Return Value

Type: System.IdentityModel.Services.WSFederationMessage
The message that was created.


requestUri is null.


A message cannot be created from the specified URI.

Returns an appropriate implementation of WSFederationMessage based on the wa parameter in the query string; for example, if wa parameter is "wsignout1.0" then a SignOutRequestMessage object is returned.

Other exceptions may be thrown depending on the combination and values of parameters present in the query string.

Invokes the TryCreateFromUri method.

.NET Framework

Supported in: 4.6, 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