共用方式為


WSTrustChannelFactory.CreateTrustChannel 方法

定義

使用反映此處理站組態的參數,建立 WSTrustChannel 物件。

protected:
 virtual System::ServiceModel::Security::WSTrustChannel ^ CreateTrustChannel(System::ServiceModel::Security::IWSTrustChannelContract ^ innerChannel, System::ServiceModel::Security::TrustVersion ^ trustVersion, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context, System::IdentityModel::Protocols::WSTrust::WSTrustRequestSerializer ^ requestSerializer, System::IdentityModel::Protocols::WSTrust::WSTrustResponseSerializer ^ responseSerializer);
protected virtual System.ServiceModel.Security.WSTrustChannel CreateTrustChannel (System.ServiceModel.Security.IWSTrustChannelContract innerChannel, System.ServiceModel.Security.TrustVersion trustVersion, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context, System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer requestSerializer, System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer responseSerializer);
abstract member CreateTrustChannel : System.ServiceModel.Security.IWSTrustChannelContract * System.ServiceModel.Security.TrustVersion * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext * System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer -> System.ServiceModel.Security.WSTrustChannel
override this.CreateTrustChannel : System.ServiceModel.Security.IWSTrustChannelContract * System.ServiceModel.Security.TrustVersion * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext * System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer -> System.ServiceModel.Security.WSTrustChannel
Protected Overridable Function CreateTrustChannel (innerChannel As IWSTrustChannelContract, trustVersion As TrustVersion, context As WSTrustSerializationContext, requestSerializer As WSTrustRequestSerializer, responseSerializer As WSTrustResponseSerializer) As WSTrustChannel

參數

innerChannel
IWSTrustChannelContract

基底類別建立的通道,能夠傳送和接收訊息。

trustVersion
TrustVersion

應該使用的 WS-Trust 版本。

context
WSTrustSerializationContext

WSTrustSerializationContext 物件,應該用來序列化 WS-Trust 訊息。

requestSerializer
WSTrustRequestSerializer

WSTrustRequestSerializer應該用來序列化WS-Trust要求訊息的物件。

responseSerializer
WSTrustResponseSerializer

WSTrustResponseSerializer 物件,應該用來序列化 WS-Trust 回應訊息。

傳回

WSTrustChannel,代表新通道。

適用於