共用方式為


StreamUpgradeProvider.CreateUpgradeInitiator(EndpointAddress, Uri) 方法

定義

建立 StreamUpgradeInitiator 的執行個體。

public:
 abstract System::ServiceModel::Channels::StreamUpgradeInitiator ^ CreateUpgradeInitiator(System::ServiceModel::EndpointAddress ^ remoteAddress, Uri ^ via);
public abstract System.ServiceModel.Channels.StreamUpgradeInitiator CreateUpgradeInitiator (System.ServiceModel.EndpointAddress remoteAddress, Uri via);
abstract member CreateUpgradeInitiator : System.ServiceModel.EndpointAddress * Uri -> System.ServiceModel.Channels.StreamUpgradeInitiator
Public MustOverride Function CreateUpgradeInitiator (remoteAddress As EndpointAddress, via As Uri) As StreamUpgradeInitiator

參數

remoteAddress
EndpointAddress

通道的端點位址。

via
Uri

Via URI 的位址 (這是路由傳送通訊所透過的中繼 URI)。

傳回

傳回 StreamUpgradeInitiator 的執行個體。

備註

這個方法會針對此升級提供者建立關聯的 StreamUpgradeInitiator,它可在提供的端點上針對相符的 StreamUpgradeAcceptor 建立升級要求。

適用於