ServiceHostBase 建構函式

定義

初始化 ServiceHostBase 類別的新執行個體。Initializes a new instance of the ServiceHostBase class.

protected:
 ServiceHostBase();
protected ServiceHostBase ();
Protected Sub New ()

範例

ServiceHost hostDefault = new
 ServiceHost(typeof(CalculatorService));

適用於