WSFederationSerializer.GetRequestAsString Method

Definition

Serializes the specified RequestSecurityToken object into a string.

public:
 virtual System::String ^ GetRequestAsString(System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ request, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public virtual string GetRequestAsString (System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
abstract member GetRequestAsString : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> string
override this.GetRequestAsString : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> string
Public Overridable Function GetRequestAsString (request As RequestSecurityToken, context As WSTrustSerializationContext) As String

Parameters

request
RequestSecurityToken

The RequestSecurityToken object to serialize.

context
WSTrustSerializationContext

The current serialization context.

Returns

A serialized string representation of the RequestSecurityToken object.

Exceptions

request is null.

-or-

context is null.

Applies to