次の方法で共有


方法 :プライベート コンポーネントを作成する

この例では、クラスで PrivateComponentAttribute 属性を使用する方法について説明します。

<PrivateComponent()> Public Class CPrivate 
Inherits ServicedComponent
[PrivateComponent] 
public class CPrivate : ServicedComponent

コードのコンパイル

この例で必要な要素は次のとおりです。

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

関連項目

参照

System.EnterpriseServices Namespace

概念

利用可能な COM+ サービスの概要
プライベート コンポーネント

Footer image

Copyright © 2007 by Microsoft Corporation.All rights reserved.