ServiceHostingEnvironment 類別

定義

提供有關 Windows Communication Foundation (WCF) 服務執行所在之目前裝載環境的資訊。

public ref class ServiceHostingEnvironment abstract sealed
public static class ServiceHostingEnvironment
type ServiceHostingEnvironment = class
Public Class ServiceHostingEnvironment
繼承
ServiceHostingEnvironment

備註

這個類別會公開不是與個別服務有特定關聯的 AppDomain 通用設定。 這個類別只能用於應用程式或電腦組態層級。

屬性

AspNetCompatibilityEnabled

取得值,指出此服務是否在 ASP.NET HTTP 應用程式管線的內容中執行。

MultipleSiteBindingsEnabled

取得或設定值,這個值會指定服務主機是否可以有多個網站繫結。

方法

EnsureInitialized()

初始化服務 (如果尚未初始化)。

EnsureServiceAvailable(String)

確認已在提供的虛擬路徑上啟動服務。

適用於