共用方式為


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

適用於