共用方式為


WSFederationSerializer.CreateResponse 方法

定義

將 WS-Federation 登入回應訊息物件轉換為 RequestSecurityTokenResponse 物件。

public:
 virtual System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ CreateResponse(System::IdentityModel::Services::FederationMessage ^ message, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public virtual System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse CreateResponse (System.IdentityModel.Services.FederationMessage message, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
abstract member CreateResponse : System.IdentityModel.Services.FederationMessage * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse
override this.CreateResponse : System.IdentityModel.Services.FederationMessage * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse
Public Overridable Function CreateResponse (message As FederationMessage, context As WSTrustSerializationContext) As RequestSecurityTokenResponse

參數

message
FederationMessage

要轉換的訊息。 這個應該是 SignInResponseMessage 的執行個體。

context
WSTrustSerializationContext

目前的序列化內容。

傳回

表示已轉換之登入回應訊息的 RequestSecurityTokenResponse 物件。

例外狀況

messagenull

-或-

contextnull

訊息的型別不是 SignInResponseMessage

-或-

SignInResponseMessage物件遺漏必要的資訊,此資訊用於建構有效的RequestSecurityTokenResponse物件。

適用於