Helper method to create a Federation message from a URI. The parameters are assumed to be specified as a query string. A return value indicates whether the operation succeeded.
Namespace: Microsoft.IdentityModel.Protocols.WSFederation
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim requestUri As Uri
Dim fedMsg As WSFederationMessage
Dim returnValue As Boolean

returnValue = WSFederationMessage.TryCreateFromUri(requestUri, fedMsg)

Syntax

Visual Basic
Public Shared Function TryCreateFromUri ( _
		requestUri As Uri, _
		<OutAttribute> ByRef fedMsg As WSFederationMessage _
) As Boolean
C#
public static bool TryCreateFromUri (
		Uri requestUri,
		out WSFederationMessage fedMsg
)
C++
public:
static bool TryCreateFromUri (
		Uri^ requestUri, 
		[OutAttribute] WSFederationMessage^% fedMsg
)
J#
public static boolean TryCreateFromUri (
		Uri requestUri, 
		/** @attribute OutAttribute() */ /** @ref */ WSFederationMessage fedMsg
)
JScript

Parameters

requestUri

The URI from which to create the message.

fedMsg

Reference to a T:Microsoft.IdentityModel.Protocols.WSFederation.WSFederationMessage returned.

Return Value

true if successfully created.

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also