次の方法で共有


IISIntrinsicsAttribute クラス

ASP に組み込まれている値に ContextUtil.GetNamedProperty からアクセスできるようにします。このクラスは継承できません。

この型のすべてのメンバの一覧については、IISIntrinsicsAttribute メンバ を参照してください。

System.Object
   System.Attribute
      System.EnterpriseServices.IISIntrinsicsAttribute

<AttributeUsage(AttributeTargets.Class)>
<ComVisible(False)>
NotInheritable Public Class IISIntrinsicsAttribute   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Class)]
[ComVisible(false)]
public sealed class IISIntrinsicsAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Class)]
[ComVisible(false)]
public __gc __sealed class IISIntrinsicsAttribute : public   Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Class)
 ComVisible(false)
class IISIntrinsicsAttribute extends Attribute

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

ASP で作成された COM+ オブジェクトがある場合、そのオブジェクトのコンテキストで利用できる名前付きプロパティを使うと、COM+ オブジェクト内から ASP の組み込みオブジェクトを取得できます。ASP.NET では、一連の新しいオブジェクトが使用されますが、これらはコンテキストからアクセスするのではなく、 ContextUtil クラスとほぼ同様の名前空間のメソッドでアクセスします。ASP.NET から COM+ オブジェクトを作成する方法も、引き続き有効です。そのため、COM+ オブジェクトが ASP.NET と対話できるようにするために、COM+ オブジェクト コンテキスト内の COM オブジェクトから使用できる組み込みオブジェクトが必要になります。

属性の使用方法については、「 属性を使用したメタデータの拡張 」を参照してください。

必要条件

名前空間: System.EnterpriseServices

プラットフォーム: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

アセンブリ: System.Enterpriseservices (System.Enterpriseservices.dll 内)

参照

IISIntrinsicsAttribute メンバ | System.EnterpriseServices 名前空間