WSFederationSerializer.GetResponseAsString 方法

定义

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

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

参数

response
RequestSecurityTokenResponse

要序列化的 RequestSecurityTokenResponse 对象。

context
WSTrustSerializationContext

当前序列化上下文。

返回

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

例外

responsenull

contextnull

适用于