WSFederationMessage Constructor (Uri, String)

.NET Framework (current version)
 

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.

Exception Condition
ArgumentNullException

baseUri is null.

ArgumentException

action is null or an empty string.

WSFederationMessageException

baseUri is not a valid, absolute URI.

.NET Framework
Available since 4.5
Return to top
Show: