WSTrustChannelFactory.CreateChannel(EndpointAddress, Uri) Metoda

Definicja

WSTrustChannel Tworzy obiekt używany do wysyłania komunikatów do usługi pod określonym adresem punktu końcowego za pośrednictwem określonego adresu transportu.

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

Parametry

address
EndpointAddress

Element EndpointAddress , który zapewnia lokalizację usługi.

via
Uri

Element Uri zawierający adres transportu, do którego kanał wysyła komunikaty.

Zwraca

Contract Obiekt reprezentujący nowy kanał.

Uwagi

Zwrócony obiekt jest wystąpieniem WSTrustChannel klasy.

Dotyczy