ServiceHost.SingletonInstance 屬性

定義

取得裝載之服務的單一執行個體。

public:
 property System::Object ^ SingletonInstance { System::Object ^ get(); };
public object SingletonInstance { get; }
member this.SingletonInstance : obj
Public ReadOnly Property SingletonInstance As Object

屬性值

裝載的服務物件。

備註

當您想要控制所使用的服務實例時,請使用 建 ServiceHost(Object, Uri[]) 構函式來初始化要裝載之服務的單一實例。

適用於