ChannelFactory<TChannel>.CreateChannelWithOnBehalfOfToken 方法

定義

用來將訊息傳送至具有代表安全性權杖之服務的建立通道。

多載

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress, Uri)

建立一個通道,這個通道可用來透過指定傳輸位址將訊息傳送至指定端點位址上代表安全性權杖的服務。

CreateChannelWithOnBehalfOfToken(SecurityToken)

用來將訊息傳送至具有代表安全性權杖之服務的建立通道。

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress)

用來將訊息傳送至位於特定端點位址具有代表安全性權杖之服務的建立通道。

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress, Uri)

建立一個通道,這個通道可用來透過指定傳輸位址將訊息傳送至指定端點位址上代表安全性權杖的服務。

public:
 TChannel CreateChannelWithOnBehalfOfToken(System::IdentityModel::Tokens::SecurityToken ^ onBehalfOf, System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public TChannel CreateChannelWithOnBehalfOfToken (System.IdentityModel.Tokens.SecurityToken onBehalfOf, System.ServiceModel.EndpointAddress address, Uri via);
member this.CreateChannelWithOnBehalfOfToken : System.IdentityModel.Tokens.SecurityToken * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Function CreateChannelWithOnBehalfOfToken (onBehalfOf As SecurityToken, address As EndpointAddress, via As Uri) As TChannel

參數

onBehalfOf
SecurityToken

安全性權杖。

address
EndpointAddress

提供服務位置的端點位址。

via
Uri

通道傳送訊息的目標傳輸位址。

傳回

TChannel

建立的通道處理站。

適用於

CreateChannelWithOnBehalfOfToken(SecurityToken)

用來將訊息傳送至具有代表安全性權杖之服務的建立通道。

public:
 TChannel CreateChannelWithOnBehalfOfToken(System::IdentityModel::Tokens::SecurityToken ^ onBehalfOf);
public TChannel CreateChannelWithOnBehalfOfToken (System.IdentityModel.Tokens.SecurityToken onBehalfOf);
member this.CreateChannelWithOnBehalfOfToken : System.IdentityModel.Tokens.SecurityToken -> 'Channel
Public Function CreateChannelWithOnBehalfOfToken (onBehalfOf As SecurityToken) As TChannel

參數

onBehalfOf
SecurityToken

安全性權杖。

傳回

TChannel

建立的通道處理站。

適用於

CreateChannelWithOnBehalfOfToken(SecurityToken, EndpointAddress)

用來將訊息傳送至位於特定端點位址具有代表安全性權杖之服務的建立通道。

public:
 TChannel CreateChannelWithOnBehalfOfToken(System::IdentityModel::Tokens::SecurityToken ^ onBehalfOf, System::ServiceModel::EndpointAddress ^ address);
public TChannel CreateChannelWithOnBehalfOfToken (System.IdentityModel.Tokens.SecurityToken onBehalfOf, System.ServiceModel.EndpointAddress address);
member this.CreateChannelWithOnBehalfOfToken : System.IdentityModel.Tokens.SecurityToken * System.ServiceModel.EndpointAddress -> 'Channel
Public Function CreateChannelWithOnBehalfOfToken (onBehalfOf As SecurityToken, address As EndpointAddress) As TChannel

參數

onBehalfOf
SecurityToken

安全性權杖。

address
EndpointAddress

提供服務位置的端點位址。

傳回

TChannel

建立的通道處理站。

適用於