Bagikan melalui


WSFederationSerializer.GetRequestAsString Metode

Definisi

Menserialisasikan objek yang ditentukan RequestSecurityToken ke dalam 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

Parameter

request
RequestSecurityToken

Objek RequestSecurityToken yang akan diserialisasikan.

context
WSTrustSerializationContext

Konteks serialisasi saat ini.

Mengembalikan

Representasi string yang diserialisasikan RequestSecurityToken dari objek .

Pengecualian

requestadalah null.

-atau-

contextadalah null.

Berlaku untuk