System.ServiceModel


ServiceHostBase クラス
ServiceHostBase クラスを拡張して、カスタム プログラミング モデルを公開するホストを実装します。

名前空間: System.ServiceModel
アセンブリ: System.ServiceModel (system.servicemodel.dll 内)

構文

Visual Basic (宣言)
Public MustInherit Class ServiceHostBase
	Inherits CommunicationObject
	Implements IExtensibleObject(Of ServiceHostBase), IDisposable
Visual Basic (使用法)
Dim instance As ServiceHostBase
C#
public abstract class ServiceHostBase : CommunicationObject, IExtensibleObject<ServiceHostBase>, IDisposable
C++
public ref class ServiceHostBase abstract : public CommunicationObject, IExtensibleObject<ServiceHostBase^>, IDisposable
J#
public abstract class ServiceHostBase extends CommunicationObject implements IExtensibleObject<ServiceHostBase>, 
	IDisposable
JScript
public abstract class ServiceHostBase extends CommunicationObject implements IExtensibleObject<ServiceHostBase>, 
	IDisposable
XAML
適用できません。
解説

ServiceHostBase クラスを拡張して、カスタム プログラミング モデルを提供するホストを作成します。Windows Communication Foundation (WCF) サービス プログラミング モデルでは、ServiceHost クラスを使用します。

このクラスから派生する MC++ ユーザーに対する特別な注意 :

  • クリーンアップ コードは、デストラクタではなく (On)(Begin)Close (または OnAbort のどちらか一方または両方) に置いてください。

  • デストラクタは使用しないでください。使用すると、コンパイラが >IDiposable を自動生成します。

  • 非参照メンバを使用しないでください。使用すると、コンパイラが IDiposable を自動生成します。

  • ファイナライザを使用しないでください。使用する場合は、ビルド警告を抑制し、>SuppressFinalize を呼び出し、ファイナライザ自体を (On)(Begin)Close (または OnAbort のどちらか一方または両方) から呼び出して、自動生成される IDiposable の動作をエミュレートする必要があります。

継承階層

System.Object
   System.ServiceModel.Channels.CommunicationObject
    System.ServiceModel.ServiceHostBase
       System.ServiceModel.ServiceHost
スレッド セーフ

この型の public static (Visual Basicでは共有) メンバはすべて,スレッド セーフです。インスタンス メンバの場合は,スレッド セーフであるとは限りません。
プラットフォーム

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0
参照

タグ :


Page view tracker