共用方式為


DataServiceHost 類別

衍生自 WebServiceHost,用於具現化資料服務的 WCF Data Services 類別。

此 API 不符合 CLS 標準。 符合 CLS 標準的替代項目是 [None]。

繼承階層

System.Object
  System.ServiceModel.Channels.CommunicationObject
    System.ServiceModel.ServiceHostBase
      System.ServiceModel.ServiceHost
        System.ServiceModel.Web.WebServiceHost
          System.Data.Services.DataServiceHost

命名空間:  System.Data.Services
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
<CLSCompliantAttribute(False)> _
Public Class DataServiceHost _
    Inherits WebServiceHost
'用途
Dim instance As DataServiceHost
[CLSCompliantAttribute(false)]
public class DataServiceHost : WebServiceHost
[CLSCompliantAttribute(false)]
public ref class DataServiceHost : public WebServiceHost
[<CLSCompliantAttribute(false)>]
type DataServiceHost =  
    class
        inherit WebServiceHost
    end
public class DataServiceHost extends WebServiceHost

DataServiceHost 型別公開下列成員。

建構函式

  名稱 說明
公用方法 DataServiceHost 為 WCF Data Services 具現化 DataServiceHost。

上層

屬性

  名稱 說明
公用屬性 Authentication (繼承自 ServiceHostBase。)
公用屬性 Authorization (繼承自 ServiceHostBase。)
公用屬性 BaseAddresses (繼承自 ServiceHostBase。)
公用屬性 ChannelDispatchers (繼承自 ServiceHostBase。)
公用屬性 CloseTimeout (繼承自 ServiceHostBase。)
公用屬性 Credentials (繼承自 ServiceHostBase。)
受保護的屬性 DefaultCloseTimeout (繼承自 ServiceHostBase。)
受保護的屬性 DefaultOpenTimeout (繼承自 ServiceHostBase。)
公用屬性 Description (繼承自 ServiceHostBase。)
公用屬性 Extensions (繼承自 ServiceHostBase。)
受保護的屬性 ImplementedContracts (繼承自 ServiceHostBase。)
受保護的屬性 IsDisposed (繼承自 CommunicationObject。)
公用屬性 ManualFlowControlLimit (繼承自 ServiceHostBase。)
公用屬性 OpenTimeout (繼承自 ServiceHostBase。)
公用屬性 SingletonInstance (繼承自 ServiceHost。)
公用屬性 State (繼承自 CommunicationObject。)
受保護的屬性 ThisLock (繼承自 CommunicationObject。)

上層

方法

  名稱 說明
公用方法 Abort (繼承自 CommunicationObject。)
受保護的方法 AddBaseAddress (繼承自 ServiceHostBase。)
公用方法 AddDefaultEndpoints (繼承自 ServiceHostBase。)
公用方法 AddServiceEndpoint(ServiceEndpoint) (繼承自 ServiceHostBase。)
公用方法 AddServiceEndpoint(Type, Binding, String) (繼承自 ServiceHost。)
公用方法 AddServiceEndpoint(Type, Binding, Uri) (繼承自 ServiceHost。)
公用方法 AddServiceEndpoint(String, Binding, String) (繼承自 ServiceHostBase。)
公用方法 AddServiceEndpoint(String, Binding, Uri) (繼承自 ServiceHostBase。)
公用方法 AddServiceEndpoint(Type, Binding, String, Uri) (繼承自 ServiceHost。)
公用方法 AddServiceEndpoint(Type, Binding, Uri, Uri) (繼承自 ServiceHost。)
公用方法 AddServiceEndpoint(String, Binding, String, Uri) (繼承自 ServiceHostBase。)
公用方法 AddServiceEndpoint(String, Binding, Uri, Uri) (繼承自 ServiceHostBase。)
受保護的方法 ApplyConfiguration (繼承自 ServiceHost。)
公用方法 BeginClose(AsyncCallback, Object) (繼承自 CommunicationObject。)
公用方法 BeginClose(TimeSpan, AsyncCallback, Object) (繼承自 CommunicationObject。)
公用方法 BeginOpen(AsyncCallback, Object) (繼承自 CommunicationObject。)
公用方法 BeginOpen(TimeSpan, AsyncCallback, Object) (繼承自 CommunicationObject。)
公用方法 Close() (繼承自 CommunicationObject。)
公用方法 Close(TimeSpan) (繼承自 CommunicationObject。)
受保護的方法 CreateDescription (繼承自 ServiceHost。)
公用方法 EndClose (繼承自 CommunicationObject。)
公用方法 EndOpen (繼承自 CommunicationObject。)
公用方法 Equals (繼承自 Object。)
受保護的方法 Fault (繼承自 CommunicationObject。)
受保護的方法 Finalize (繼承自 Object。)
受保護的方法 GetCommunicationObjectType (繼承自 CommunicationObject。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 IncrementManualFlowControlLimit (繼承自 ServiceHostBase。)
受保護的方法 InitializeDescription(UriSchemeKeyedCollection) (繼承自 ServiceHostBase。)
受保護的方法 InitializeDescription(Object, UriSchemeKeyedCollection) (繼承自 ServiceHost。)
受保護的方法 InitializeDescription(Type, UriSchemeKeyedCollection) (繼承自 ServiceHost。)
受保護的方法 InitializeRuntime (繼承自 ServiceHostBase。)
受保護的方法 LoadConfigurationSection (繼承自 ServiceHostBase。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 OnAbort (繼承自 ServiceHostBase。)
受保護的方法 OnBeginClose (繼承自 ServiceHostBase。)
受保護的方法 OnBeginOpen (繼承自 ServiceHostBase。)
受保護的方法 OnClose (繼承自 ServiceHostBase。)
受保護的方法 OnClosed (繼承自 ServiceHost。)
受保護的方法 OnClosing (繼承自 CommunicationObject。)
受保護的方法 OnEndClose (繼承自 ServiceHostBase。)
受保護的方法 OnEndOpen (繼承自 ServiceHostBase。)
受保護的方法 OnFaulted (繼承自 CommunicationObject。)
受保護的方法 OnOpen (繼承自 ServiceHostBase。)
受保護的方法 OnOpened (繼承自 ServiceHostBase。)
受保護的方法 OnOpening (繼承自 WebServiceHost。)
公用方法 Open() (繼承自 CommunicationObject。)
公用方法 Open(TimeSpan) (繼承自 CommunicationObject。)
受保護的方法 ReleasePerformanceCounters (繼承自 ServiceHostBase。)
公用方法 SetEndpointAddress (繼承自 ServiceHostBase。)
受保護的方法 ThrowIfDisposed (繼承自 CommunicationObject。)
受保護的方法 ThrowIfDisposedOrImmutable (繼承自 CommunicationObject。)
受保護的方法 ThrowIfDisposedOrNotOpen (繼承自 CommunicationObject。)
公用方法 ToString (繼承自 Object。)

上層

事件

  名稱 說明
公用事件 Closed (繼承自 CommunicationObject。)
公用事件 Closing (繼承自 CommunicationObject。)
公用事件 Faulted (繼承自 CommunicationObject。)
公用事件 Opened (繼承自 CommunicationObject。)
公用事件 Opening (繼承自 CommunicationObject。)
公用事件 UnknownMessageReceived (繼承自 ServiceHostBase。)

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 IDisposable.Dispose (繼承自 ServiceHostBase。)

上層

備註

WCF Data Services 不是自主的伺服器實體。 此服務是裝載於提供核心伺服器網路設備之環境 (例如 Windows Communication Foundation (WCF)) 的元件。 具體來說,服務不會繫結至網路通訊端並在其上接聽其代表性狀態傳輸 (REST) 進入點的連入要求。 此主應用程式 (Host) 會處理與網路的直接互動並且支援快取、延展性 (Scalability) 和驗證模組。

WCF Data Services 定義泛型裝載介面 IDataServiceHost,從特定主機抽象化其實作。 這允許 WCF Data Services 在一系列的裝載環境中執行。 如需詳細資訊,請參閱裝載資料服務 (WCF Data Services)

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

System.Data.Services 命名空間