.NET Framework 開発者ガイド
方法 : プライベート コンポーネントを作成する

クラスで PrivateComponentAttribute 属性を使用する方法を次の例に示します。

使用例

Visual Basic
<PrivateComponent()> Public Class CPrivate 
Inherits ServicedComponent
C#
[PrivateComponent] 
public class CPrivate : ServicedComponent

コードのコンパイル方法

この例では、下記が必要です。

  • System.ServiceProcess 名前空間への参照

参照

タグ :


Page view tracker