方法 :プライベート コンポーネントを作成する
この例では、クラスで PrivateComponentAttribute 属性を使用する方法について説明します。
例
<PrivateComponent()> Public Class CPrivate
Inherits ServicedComponent
[PrivateComponent]
public class CPrivate : ServicedComponent
コードのコンパイル
この例で必要な要素は次のとおりです。
- System.ServiceProcess 名前空間への参照
関連項目
参照
System.EnterpriseServices Namespace
概念
利用可能な COM+ サービスの概要
プライベート コンポーネント
Copyright © 2007 by Microsoft Corporation.All rights reserved.