Partager via


WSTrustChannelFactory.CreateChannel(EndpointAddress, Uri) Méthode

Définition

Creates a WSTrustChannel object that is used to send messages to a service at a specific endpoint address through a specified transport address.

public:
 override System::ServiceModel::Security::IWSTrustChannelContract ^ CreateChannel(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public override System.ServiceModel.Security.IWSTrustChannelContract CreateChannel (System.ServiceModel.EndpointAddress address, Uri via);
override this.CreateChannel : System.ServiceModel.EndpointAddress * Uri -> System.ServiceModel.Security.IWSTrustChannelContract
Public Overrides Function CreateChannel (address As EndpointAddress, via As Uri) As IWSTrustChannelContract

Paramètres

address
EndpointAddress

La EndpointAddress qui fournit l'emplacement du service.

via
Uri

Uri qui contient l'adresse de transport à laquelle le canal envoie les messages.

Retours

A Contract object that represents the new channel.

Remarques

L’objet retourné est une instance de la WSTrustChannel classe .

S’applique à