Export (0) Print
Expand All

WSFederationMessage Constructor

.NET Framework 4.5

Initializes a new instance of the WSFederationMessage class from the base URL to which the message applies and the action to be performed (the wa message parameter).

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

public WSFederationMessage(
	Uri baseUrl,
	string action
)

Parameters

baseUrl
Type: System.Uri

The base URL to which the WS-Federation message applies. This is the URL without any query parameters. Sets the BaseUri property.

action
Type: System.String

The wa parameter of the message. Specifies the action to be performed; for example “wsignin1.0” for a WS-Federation sign-in request. Sets the Action property.

ExceptionCondition
ArgumentNullException

baseUri is null.

ArgumentException

action is null or an empty string.

WSFederationMessageException

baseUri is not a valid, absolute URI.

.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.

Show:
© 2014 Microsoft