ObjectPoolingAttributeとは? わかりやすく解説

ObjectPoolingAttribute クラス

コンポーネントのオブジェクト プーリングを有効にして構成します。このクラスは継承できません。

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

<ComVisibleAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _
Public NotInheritable Class
 ObjectPoolingAttribute
    Inherits Attribute
Dim instance As ObjectPoolingAttribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)]
 
public sealed class ObjectPoolingAttribute
 : Attribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets::Class, Inherited=true)]
 
public ref class ObjectPoolingAttribute sealed
 : public Attribute
/** @attribute ComVisibleAttribute(false) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 */ 
public final class ObjectPoolingAttribute extends
 Attribute
ComVisibleAttribute(false) 
AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 
public final class ObjectPoolingAttribute extends
 Attribute
解説解説
使用例使用例

この属性の使用方法のコード例を次に示します。

Imports System
Imports System.EnterpriseServices
Imports System.Windows.Forms



<Assembly: ApplicationName("ObjectInspector")>
 
<Assembly: ApplicationActivation(ActivationOption.Server)> 
<Assembly: System.Reflection.AssemblyKeyFile("Inspector.snk")>
 
 
<JustInTimeActivation(), ObjectPooling(MinPoolSize := 2, MaxPoolSize := 100, CreationTimeout
 := 1000)>  _
Public Class ObjectInspector
    Inherits ServicedComponent
    
    
    Public Function IdentifyObject(ByVal
 obj As [Object]) As String
 
        ' Return this object to the pool after use.
        ContextUtil.DeactivateOnReturn = True
        
        ' Get the supplied object's type.        
        Dim objType As Type = obj.GetType()
        
        ' Return its name.
        Return objType.FullName
    
    End Function 'IdentifyObject

    Protected Overrides Sub
 Activate() 
        MessageBox.Show(String.Format("Now
 entering..." + vbLf + "Application: {0}"
 + vbLf + "Instance: {1}" + vbLf + "Context: {2}" + vbLf, ContextUtil.ApplicationId.ToString(), ContextUtil.ApplicationInstanceId.ToString(),
 ContextUtil.ContextId.ToString()))
    
    End Sub 'Activate

    Protected Overrides Sub
 Deactivate() 
        MessageBox.Show("Bye Bye!")
    
    End Sub 'Deactivate

    ' This object can be pooled.
    Protected Overrides Function
 CanBePooled() As Boolean 
        Return True
    
    End Function 'CanBePooled

End Class 'ObjectInspector
using System;
using System.EnterpriseServices;
using System.Windows.Forms;

[assembly: ApplicationName("ObjectInspector")]
[assembly: ApplicationActivation(ActivationOption.Server)]
[assembly: System.Reflection.AssemblyKeyFile("Inspector.snk")]

[JustInTimeActivation]
[ObjectPooling(MinPoolSize=2, MaxPoolSize=100, CreationTimeout=1000)]
public class ObjectInspector : ServicedComponent
{

    public string IdentifyObject (Object obj)
    {
        // Return this object to the pool after use.
        ContextUtil.DeactivateOnReturn = true;

        // Get the supplied object's type.        
        Type objType = obj.GetType();
        
        // Return its name.
        return(objType.FullName);

    }

    protected override void Activate()
    {
        MessageBox.Show( String.Format("Now entering...\nApplication: {0}\nInstance:
 {1}\nContext: {2}\n",
                                       ContextUtil.ApplicationId.ToString(), ContextUtil.ApplicationInstanceId.ToString()
,
                                       ContextUtil.ContextId.ToString() ) );
    }

    protected override void Deactivate()
    {
        MessageBox.Show("Bye Bye!");
    }

    // This object can be pooled.
    protected override bool CanBePooled()
    {
        return(true);
    }

}
#using <System.Windows.Forms.dll>
#using <System.Transactions.dll>
#using <System.EnterpriseServices.dll>

using namespace System;
using namespace System::EnterpriseServices;
using namespace System::Windows::Forms;


[assembly:ApplicationName("ObjectInspector")];
[assembly:ApplicationActivation(ActivationOption::Server)];
[assembly:System::Reflection::AssemblyKeyFile("Inspector.snk")];
[JustInTimeActivation]
[ObjectPooling(MinPoolSize=2,MaxPoolSize=100,CreationTimeout=1000)]
public ref class ObjectInspector: public
 ServicedComponent
{
public:
   String^ IdentifyObject( Object^ obj )
   {
      // Return this object to the pool after use.
      ContextUtil::DeactivateOnReturn = true;

      // Get the supplied object's type.        
      Type^ objType = obj->GetType();

      // Return its name.
      return (objType->FullName);
   }

protected:
   virtual void Activate() override
   {
      MessageBox::Show( String::Format( "Now entering...\nApplication: {0}\nInstance:
 {1}\nContext: {2}\n", ContextUtil::ApplicationId.ToString(), ContextUtil::ApplicationInstanceId.ToString(),
 ContextUtil::ContextId.ToString() ) );
   }

   virtual void Deactivate() override
   {
      MessageBox::Show( "Bye Bye!" );
   }

   // This object can be pooled.
   virtual bool CanBePooled() override
   {
      return (true);
   }
};
import System.*;
import System.EnterpriseServices.*;
import System.Windows.Forms.*;

/** @assembly ApplicationName("ObjectInspector")
 */
/** @assembly ApplicationActivation(ActivationOption.Server)
 */
/** @assembly System.Reflection.AssemblyKeyFile("Inspector.snk")
 */

/** @attribute JustInTimeActivation()
 */
/** @attribute ObjectPooling(MinPoolSize = 2, MaxPoolSize = 100, 
    CreationTimeout = 1000)
 */
public class ObjectInspector extends ServicedComponent
{
    public String IdentifyObject(Object obj)
    {
        // Return this object to the pool after use.
        ContextUtil.set_DeactivateOnReturn(true);
        // Get the supplied object's type.        
        Type objType = obj.GetType();
        // Return its name.
        return objType.get_FullName();
    } //IdentifyObject

    protected void Activate()
    {
        MessageBox.Show(String.Format("Now entering...\nApplication: {0}\n"
            + "Instance: {1}\nContext: {2}\n",
            ContextUtil.get_ApplicationId().ToString(),
            ContextUtil.get_ApplicationInstanceId().ToString(),
            ContextUtil.get_ContextId().ToString()));
    } //Activate

    protected void Deactivate()
    {
        MessageBox.Show("Bye Bye!");
    } //Deactivate

    // This object can be pooled.
    protected boolean CanBePooled()
    {
        return true;
    } //CanBePooled
} //ObjectInspector 
継承階層継承階層
System.Object
   System.Attribute
    System.EnterpriseServices.ObjectPoolingAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ObjectPoolingAttribute コンストラクタ ()

ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、Enabled、MaxPoolSize、MinPoolSize、CreationTimeout の各プロパティを既定値に設定します。

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

Dim instance As New ObjectPoolingAttribute
public ObjectPoolingAttribute ()
public:
ObjectPoolingAttribute ()
public ObjectPoolingAttribute ()
public function ObjectPoolingAttribute ()
解説解説

ObjectPoolingAttribute のインスタンスの初期プロパティ値を次の表に示します。

プロパティ

値

Enabled

true

MaxPoolSize

-1

MinPoolSize

-1

CreationTimeout

-1

使用例使用例

この属性の使用方法のコード例を次に示します。

Imports System
Imports System.EnterpriseServices
Imports System.Windows.Forms



<Assembly: ApplicationName("ObjectInspector")>
 
<Assembly: ApplicationActivation(ActivationOption.Server)> 
<Assembly: System.Reflection.AssemblyKeyFile("Inspector.snk")>
 
 
<JustInTimeActivation(), ObjectPooling(MinPoolSize := 2, MaxPoolSize := 100, CreationTimeout
 := 1000)>  _
Public Class ObjectInspector
    Inherits ServicedComponent
    
    
    Public Function IdentifyObject(ByVal
 obj As [Object]) As String
 
        ' Return this object to the pool after use.
        ContextUtil.DeactivateOnReturn = True
        
        ' Get the supplied object's type.        
        Dim objType As Type = obj.GetType()
        
        ' Return its name.
        Return objType.FullName
    
    End Function 'IdentifyObject

    Protected Overrides Sub
 Activate() 
        MessageBox.Show(String.Format("Now
 entering..." + vbLf + "Application: {0}"
 + vbLf + "Instance: {1}" + vbLf + "Context: {2}" + vbLf, ContextUtil.ApplicationId.ToString(), ContextUtil.ApplicationInstanceId.ToString(),
 ContextUtil.ContextId.ToString()))
    
    End Sub 'Activate

    Protected Overrides Sub
 Deactivate() 
        MessageBox.Show("Bye Bye!")
    
    End Sub 'Deactivate

    ' This object can be pooled.
    Protected Overrides Function
 CanBePooled() As Boolean 
        Return True
    
    End Function 'CanBePooled

End Class 'ObjectInspector
using System;
using System.EnterpriseServices;
using System.Windows.Forms;

[assembly: ApplicationName("ObjectInspector")]
[assembly: ApplicationActivation(ActivationOption.Server)]
[assembly: System.Reflection.AssemblyKeyFile("Inspector.snk")]

[JustInTimeActivation]
[ObjectPooling(MinPoolSize=2, MaxPoolSize=100, CreationTimeout=1000)]
public class ObjectInspector : ServicedComponent
{

    public string IdentifyObject (Object obj)
    {
        // Return this object to the pool after use.
        ContextUtil.DeactivateOnReturn = true;

        // Get the supplied object's type.        
        Type objType = obj.GetType();
        
        // Return its name.
        return(objType.FullName);

    }

    protected override void Activate()
    {
        MessageBox.Show( String.Format("Now entering...\nApplication: {0}\nInstance:
 {1}\nContext: {2}\n",
                                       ContextUtil.ApplicationId.ToString(), ContextUtil.ApplicationInstanceId.ToString()
,
                                       ContextUtil.ContextId.ToString() ) );
    }

    protected override void Deactivate()
    {
        MessageBox.Show("Bye Bye!");
    }

    // This object can be pooled.
    protected override bool CanBePooled()
    {
        return(true);
    }

}
#using <System.Windows.Forms.dll>
#using <System.Transactions.dll>
#using <System.EnterpriseServices.dll>

using namespace System;
using namespace System::EnterpriseServices;
using namespace System::Windows::Forms;


[assembly:ApplicationName("ObjectInspector")];
[assembly:ApplicationActivation(ActivationOption::Server)];
[assembly:System::Reflection::AssemblyKeyFile("Inspector.snk")];
[JustInTimeActivation]
[ObjectPooling(MinPoolSize=2,MaxPoolSize=100,CreationTimeout=1000)]
public ref class ObjectInspector: public
 ServicedComponent
{
public:
   String^ IdentifyObject( Object^ obj )
   {
      // Return this object to the pool after use.
      ContextUtil::DeactivateOnReturn = true;

      // Get the supplied object's type.        
      Type^ objType = obj->GetType();

      // Return its name.
      return (objType->FullName);
   }

protected:
   virtual void Activate() override
   {
      MessageBox::Show( String::Format( "Now entering...\nApplication: {0}\nInstance:
 {1}\nContext: {2}\n", ContextUtil::ApplicationId.ToString(), ContextUtil::ApplicationInstanceId.ToString(),
 ContextUtil::ContextId.ToString() ) );
   }

   virtual void Deactivate() override
   {
      MessageBox::Show( "Bye Bye!" );
   }

   // This object can be pooled.
   virtual bool CanBePooled() override
   {
      return (true);
   }
};
import System.*;
import System.EnterpriseServices.*;
import System.Windows.Forms.*;

/** @assembly ApplicationName("ObjectInspector")
 */
/** @assembly ApplicationActivation(ActivationOption.Server)
 */
/** @assembly System.Reflection.AssemblyKeyFile("Inspector.snk")
 */

/** @attribute JustInTimeActivation()
 */
/** @attribute ObjectPooling(MinPoolSize = 2, MaxPoolSize = 100, 
    CreationTimeout = 1000)
 */
public class ObjectInspector extends ServicedComponent
{
    public String IdentifyObject(Object obj)
    {
        // Return this object to the pool after use.
        ContextUtil.set_DeactivateOnReturn(true);
        // Get the supplied object's type.        
        Type objType = obj.GetType();
        // Return its name.
        return objType.get_FullName();
    } //IdentifyObject

    protected void Activate()
    {
        MessageBox.Show(String.Format("Now entering...\nApplication: {0}\n"
            + "Instance: {1}\nContext: {2}\n",
            ContextUtil.get_ApplicationId().ToString(),
            ContextUtil.get_ApplicationInstanceId().ToString(),
            ContextUtil.get_ContextId().ToString()));
    } //Activate

    protected void Deactivate()
    {
        MessageBox.Show("Bye Bye!");
    } //Deactivate

    // This object can be pooled.
    protected boolean CanBePooled()
    {
        return true;
    } //CanBePooled
} //ObjectInspector 
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ObjectPoolingAttribute クラス
ObjectPoolingAttribute メンバ
System.EnterpriseServices 名前空間

ObjectPoolingAttribute コンストラクタ (Boolean)

ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、Enabled プロパティを設定します。

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

Dim enable As Boolean

Dim instance As New ObjectPoolingAttribute(enable)
public ObjectPoolingAttribute (
    bool enable
)
public:
ObjectPoolingAttribute (
    bool enable
)
public ObjectPoolingAttribute (
    boolean enable
)
public function ObjectPoolingAttribute (
    enable : boolean
)

パラメータ

enable

オブジェクト プーリングを有効にする場合は true。それ以外の場合は false。

使用例使用例

新しい ObjectPoolingAttribute を作成するコード例を次に示します。

<ObjectPooling(True)>  _
Public Class ObjectPoolingAttribute_Ctor_Bool
    Inherits ServicedComponent
End Class 'ObjectPoolingAttribute_Ctor_Bool
[ObjectPooling(true)]
public class ObjectPoolingAttribute_Ctor_Bool
 : ServicedComponent
{
}
[ObjectPooling(true)]
public ref class ObjectPoolingAttributeCtorBool
 : public ServicedComponent
{
};
/** @attribute ObjectPooling(true)
 */
public class ObjectPoolingAttribute_Ctor_Bool
 extends ServicedComponent
{
} //ObjectPoolingAttribute_Ctor_Bool
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ObjectPoolingAttribute クラス
ObjectPoolingAttribute メンバ
System.EnterpriseServices 名前空間

ObjectPoolingAttribute コンストラクタ (Int32, Int32)

ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、MaxPoolSize プロパティと MinPoolSize プロパティを設定します。

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

Public Sub New ( _
    minPoolSize As Integer, _
    maxPoolSize As Integer _
)
Dim minPoolSize As Integer
Dim maxPoolSize As Integer

Dim instance As New ObjectPoolingAttribute(minPoolSize,
 maxPoolSize)
public ObjectPoolingAttribute (
    int minPoolSize,
    int maxPoolSize
)
public:
ObjectPoolingAttribute (
    int minPoolSize, 
    int maxPoolSize
)
public ObjectPoolingAttribute (
    int minPoolSize, 
    int maxPoolSize
)
public function ObjectPoolingAttribute (
    minPoolSize : int, 
    maxPoolSize : int
)

パラメータ

minPoolSize

最小プール サイズ。

maxPoolSize

最大プール サイズ。

使用例使用例

新しい ObjectPoolingAttribute を作成するコード例を次に示します。

<ObjectPooling(1, 10)>  _
Public Class ObjectPoolingAttribute_Ctor_Int_Int
    Inherits ServicedComponent
End Class 'ObjectPoolingAttribute_Ctor_Int_Int
[ObjectPooling(1, 10)]
public class ObjectPoolingAttribute_Ctor_Int_Int
 : ServicedComponent
{
}
[ObjectPooling(1, 10)]
public ref class ObjectPoolingAttributeCtorIntInt
 : public ServicedComponent
{
};
/** @attribute ObjectPooling(1, 10)
 */
public class ObjectPoolingAttribute_Ctor_Int_Int
 extends ServicedComponent
{
} //ObjectPoolingAttribute_Ctor_Int_Int
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ObjectPoolingAttribute クラス
ObjectPoolingAttribute メンバ
System.EnterpriseServices 名前空間

ObjectPoolingAttribute コンストラクタ

ObjectPoolingAttribute クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
ObjectPoolingAttribute () ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、Enabled、MaxPoolSize、MinPoolSize、CreationTimeout の各プロパティを既定値に設定します。
ObjectPoolingAttribute (Boolean) ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、Enabled プロパティを設定します。
ObjectPoolingAttribute (Int32, Int32) ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、MaxPoolSize プロパティと MinPoolSize プロパティを設定します。
ObjectPoolingAttribute (Boolean, Int32, Int32) ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、Enabled、MaxPoolSize、MinPoolSize の各プロパティを設定します。
参照参照

関連項目

ObjectPoolingAttribute クラス
ObjectPoolingAttribute メンバ
System.EnterpriseServices 名前空間

ObjectPoolingAttribute コンストラクタ (Boolean, Int32, Int32)

ObjectPoolingAttribute クラスの新しいインスタンスを初期化し、Enabled、MaxPoolSize、MinPoolSize の各プロパティを設定します。

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

Public Sub New ( _
    enable As Boolean, _
    minPoolSize As Integer, _
    maxPoolSize As Integer _
)
Dim enable As Boolean
Dim minPoolSize As Integer
Dim maxPoolSize As Integer

Dim instance As New ObjectPoolingAttribute(enable,
 minPoolSize, maxPoolSize)
public ObjectPoolingAttribute (
    bool enable,
    int minPoolSize,
    int maxPoolSize
)
public:
ObjectPoolingAttribute (
    bool enable, 
    int minPoolSize, 
    int maxPoolSize
)
public ObjectPoolingAttribute (
    boolean enable, 
    int minPoolSize, 
    int maxPoolSize
)
public function ObjectPoolingAttribute (
    enable : boolean, 
    minPoolSize : int, 
    maxPoolSize : int
)

パラメータ

enable

オブジェクト プーリングを有効にする場合は true。それ以外の場合は false。

minPoolSize

最小プール サイズ。

maxPoolSize

最大プール サイズ。

使用例使用例

新しい ObjectPoolingAttribute を作成するコード例を次に示します。

<ObjectPooling(True, 1, 10)>  _
Public Class ObjectPoolingAttribute_Ctor_Bool_Int_Int
    Inherits ServicedComponent
End Class 'ObjectPoolingAttribute_Ctor_Bool_Int_Int
[ObjectPooling(true, 1, 10)]
public class ObjectPoolingAttribute_Ctor_Bool_Int_Int
 : ServicedComponent
{
}
[ObjectPooling(true, 1, 10)]
public ref class ObjectPoolingAttributeCtorBoolIntInt
 : 
    public ServicedComponent
{
};
/** @attribute ObjectPooling(true, 1, 10)
 */
public class ObjectPoolingAttribute_Ctor_Bool_Int_Int
 extends ServicedComponent
{
} //ObjectPoolingAttribute_Ctor_Bool_Int_Int
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ObjectPoolingAttribute クラス
ObjectPoolingAttribute メンバ
System.EnterpriseServices 名前空間

ObjectPoolingAttribute プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ CreationTimeout オブジェクトがプール内で使用できるようになり、例外をスローするまでの待機時間の長さを取得または設定します。この値の単位はミリ秒です。
パブリック プロパティ Enabled オブジェクト プーリングが有効かどうかを示す値を取得または設定します。
パブリック プロパティ MaxPoolSize プールの最大サイズの値を取得または設定します。
パブリック プロパティ MinPoolSize プールの最小サイズの値を取得または設定します。
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。)
参照参照

関連項目

ObjectPoolingAttribute クラス
System.EnterpriseServices 名前空間

ObjectPoolingAttribute メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AfterSaveChanges COM+ カタログ内のアセンブリのインストールおよび構成中に、.NET Framework インフラストラクチャによって内部的に呼び出されます。
パブリック メソッド Apply ObjectPoolingAttribute クラス属性をサービス コンポーネントに適用しているときに、.NET Framework インフラストラクチャによって内部的に呼び出されます。
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。)
パブリック メソッド IsValidTarget COM+ カタログ内のアセンブリのインストールおよび構成中に、.NET Framework インフラストラクチャによって内部的に呼び出されます。
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ObjectPoolingAttribute クラス
System.EnterpriseServices 名前空間

ObjectPoolingAttribute メンバ

コンポーネントのオブジェクト プーリングを有効にして構成します。このクラスは継承できません。

ObjectPoolingAttribute データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ObjectPoolingAttribute オーバーロードされます。 ObjectPoolingAttribute クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ CreationTimeout オブジェクトがプール内で使用できるようになり、例外をスローするまでの待機時間の長さを取得または設定します。この値の単位はミリ秒です。
パブリック プロパティ Enabled オブジェクト プーリングが有効かどうかを示す値を取得または設定します。
パブリック プロパティ MaxPoolSize プールの最大サイズの値を取得または設定します。
パブリック プロパティ MinPoolSize プールの最小サイズの値を取得または設定します。
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AfterSaveChanges COM+ カタログ内のアセンブリのインストールおよび構成中に、.NET Framework インフラストラクチャによって内部的に呼び出されます。
パブリック メソッド Apply ObjectPoolingAttribute クラス属性をサービス コンポーネントに適用しているときに、.NET Framework インフラストラクチャによって内部的に呼び出されます。
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。)
パブリック メソッド IsValidTarget COM+ カタログ内のアセンブリのインストールおよび構成中に、.NET Framework インフラストラクチャによって内部的に呼び出されます。
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ObjectPoolingAttribute クラス
System.EnterpriseServices 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ObjectPoolingAttribute」の関連用語

ObjectPoolingAttributeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ObjectPoolingAttributeのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS