共用方式為


ServiceRoute(String, ServiceHostFactoryBase, Type) 建構函式

定義

使用指定的路由前置詞、服務主機處理站及服務類型,初始化 ServiceRoute 類別的新執行個體。

public:
 ServiceRoute(System::String ^ routePrefix, System::ServiceModel::Activation::ServiceHostFactoryBase ^ serviceHostFactory, Type ^ serviceType);
public ServiceRoute (string routePrefix, System.ServiceModel.Activation.ServiceHostFactoryBase serviceHostFactory, Type serviceType);
new System.ServiceModel.Activation.ServiceRoute : string * System.ServiceModel.Activation.ServiceHostFactoryBase * Type -> System.ServiceModel.Activation.ServiceRoute
Public Sub New (routePrefix As String, serviceHostFactory As ServiceHostFactoryBase, serviceType As Type)

參數

routePrefix
String

路由前置詞。

serviceHostFactory
ServiceHostFactoryBase

ServiceHostFactory 類別的執行個體。

serviceType
Type

服務類型。

適用於