次の方法で共有


TypeLibFuncAttribute クラス

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

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

System.Object
   System.Attribute
      System.Runtime.InteropServices.TypeLibFuncAttribute

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

スレッドセーフ

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

解説

タイプ ライブラリ インポータ (Tlbimp.exe) は、この属性をメソッドに適用します。

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

必要条件

名前空間: 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 内)

参照

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