次の方法で共有


TypeLibTypeAttribute クラス

COM タイプ ライブラリからこの型用に元来インポートされた TYPEFLAGS を格納します。

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

System.Object
   System.Attribute
      System.Runtime.InteropServices.TypeLibTypeAttribute

<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Struct _
   Or AttributeTargets.Enum Or AttributeTargets.Interface)>
NotInheritable Public Class TypeLibTypeAttribute   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
   AttributeTargets.Enum | AttributeTargets.Interface)]
public sealed class TypeLibTypeAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Class | AttributeTargets::Struct
   | AttributeTargets::Enum | AttributeTargets::Interface)]
public __gc __sealed class TypeLibTypeAttribute : public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
   AttributeTargets.Enum | AttributeTargets.Interface)
class TypeLibTypeAttribute extends Attribute

スレッドセーフ

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

解説

タイプ ライブラリ インポータ (Tlbimp.exe) は、この属性をクラスまたはインターフェイスに適用します。

この属性はタイプ ライブラリがインポートされるときに適用され、変更されることはありません。適用されるのは、メソッドの TYPEFLAGS が 0 以外の場合だけです。この属性は、元の TYPEFLAGS がどのように設定されたかを把握する必要のあるツールが使用するために設計されています。共通言語ランタイムでは、この属性は使用されません。

必要条件

名前空間: System.Runtime.InteropServices

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

アセンブリ: Mscorlib (Mscorlib.dll 内)

参照

TypeLibTypeAttribute メンバ | System.Runtime.InteropServices 名前空間 | タイプ ライブラリ インポータ (Tlbimp.exe)