WSFederationSerializer.GetRequestAsString 方法

定义

将指定的 RequestSecurityToken 对象序列化为字符串。

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

参数

request
RequestSecurityToken

要序列化的 RequestSecurityToken 对象。

context
WSTrustSerializationContext

当前序列化上下文。

返回

RequestSecurityToken 对象的序列化字符串表示形式。

例外

requestnull

contextnull

适用于