Share via


方法 :JIT アクティベーションを有効にする

この例では、クラス上およびクラス外で JIT アクティベーションと非アクティベーションを有効にする方法について説明します。

<JustInTimeActivation()> _
Public Class TestJITObjectPooling 
Inherits ServicedComponent
[JustInTimeActivation]
public class TestJITObjectPooling : ServicedComponent

コードのコンパイル

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

関連項目

参照

JustInTimeActivationAttribute
System.EnterpriseServices Namespace

概念

利用可能な COM+ サービスの概要
Just-in-Time アクティベーション

Footer image

Copyright © 2007 by Microsoft Corporation.All rights reserved.