共用方式為


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

適用於