Checks whether the specified string is a RequestSecurityToken with a namespace that is recognized by the WSTrustRequestSerializer.
Namespace: Microsoft.IdentityModel.Protocols.WSFederation
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As WSFederationSerializer
Dim trustMessage As String
Dim returnValue As Boolean

returnValue = instance.CanReadRequest(trustMessage)

Syntax

Visual Basic
Public Overridable Function CanReadRequest ( _
		trustMessage As String _
) As Boolean
C#
public virtual bool CanReadRequest (
		string trustMessage
)
C++
public:
virtual bool CanReadRequest (
		String^ trustMessage
)
J#
public boolean CanReadRequest (
		String trustMessage
)
JScript
public function CanReadRequest (
		trustMessage : String
) : boolean

Parameters

trustMessage

The trust message to check.

Return Value

True if trustMessage is a valid RequestSecurityToken with a namespace that matches the WS-Trust version that this Serializer supports.

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