共用方式為


WSTrustChannel 建構函式

定義

初始化 WSTrustChannel 類別的新執行個體。

public:
 WSTrustChannel(System::ServiceModel::Security::WSTrustChannelFactory ^ factory, System::ServiceModel::Security::IWSTrustChannelContract ^ inner, System::ServiceModel::Security::TrustVersion ^ trustVersion, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context, System::IdentityModel::Protocols::WSTrust::WSTrustRequestSerializer ^ requestSerializer, System::IdentityModel::Protocols::WSTrust::WSTrustResponseSerializer ^ responseSerializer);
public WSTrustChannel (System.ServiceModel.Security.WSTrustChannelFactory factory, System.ServiceModel.Security.IWSTrustChannelContract inner, System.ServiceModel.Security.TrustVersion trustVersion, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context, System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer requestSerializer, System.IdentityModel.Protocols.WSTrust.WSTrustResponseSerializer responseSerializer);
new System.ServiceModel.Security.WSTrustChannel : System.ServiceModel.Security.WSTrustChannelFactory * 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
Public Sub New (factory As WSTrustChannelFactory, inner As IWSTrustChannelContract, trustVersion As TrustVersion, context As WSTrustSerializationContext, requestSerializer As WSTrustRequestSerializer, responseSerializer As WSTrustResponseSerializer)

參數

factory
WSTrustChannelFactory

正在建立通道的 WSTrustChannelFactory

inner
IWSTrustChannelContract

IWSTrustChannelContract,通道會用來傳送和接收 Message 物件。

trustVersion
TrustVersion

通道會用來序列化 Message物件的 WS-Trust 版本。

context
WSTrustSerializationContext

通道會用來序列化 WS-Trust 訊息的WSTrustSerializationContext

requestSerializer
WSTrustRequestSerializer

通道用來序列化 WS-Trust 要求的 WSTrustRequestSerializer

responseSerializer
WSTrustResponseSerializer

通道會用來序列化 WS-Trust 回應訊息的 WSTrustResponseSerializer

適用於