TypeLibFuncAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<ComVisibleAttribute(True)> _ <AttributeUsageAttribute(AttributeTargets.Method, Inherited:=False)> _ Public NotInheritable Class TypeLibFuncAttribute Inherits Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Method, Inherited=false)] public sealed class TypeLibFuncAttribute : Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets::Method, Inherited=false)] public ref class TypeLibFuncAttribute sealed : public Attribute

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

メソッドの TypeLibFuncAttribute 値を取得する方法を次の例に示します。
Imports System Imports System.Reflection Imports System.Runtime.InteropServices Module C Public Function IsHiddenMethod(ByVal mi As MethodInfo) As Boolean Dim MethodAttributes As Object() = mi.GetCustomAttributes(GetType(TypeLibFuncAttribute), True) If MethodAttributes.Length > 0 Then Dim tlf As TypeLibFuncAttribute = MethodAttributes(0) Dim flags As TypeLibFuncFlags = tlf.Value Return (flags & TypeLibFuncFlags.FHidden) > 0 End If Return False End Function End Module
using System; using System.Reflection; using System.Runtime.InteropServices; namespace C { class ClassC { public static bool IsHiddenMethod( MethodInfo mi ) { object[] MethodAttributes = mi.GetCustomAttributes( typeof( TypeLibFuncAttribute ), true); if( MethodAttributes.Length > 0 ) { TypeLibFuncAttribute tlf = ( TypeLibFuncAttribute )MethodAttributes[0]; TypeLibFuncFlags flags = tlf.Value; return ( flags & TypeLibFuncFlags.FHidden ) != 0; } return false; } } }
using namespace System; using namespace System::Reflection; using namespace System::Runtime::InteropServices; ref class ClassC { private: static bool IsHiddenMethod( MethodInfo^ mi ) { array<Object^>^MethodAttributes = mi->GetCustomAttributes( TypeLibFuncAttribute::typeid, true ); if ( MethodAttributes->Length > 0 ) { TypeLibFuncAttribute^ tlf = dynamic_cast<TypeLibFuncAttribute^>(MethodAttributes[ 0 ]); TypeLibFuncFlags flags = tlf->Value; return (flags & TypeLibFuncFlags::FHidden) != (TypeLibFuncFlags)0; } return false; } };
import System.*; import System.Reflection.*; import System.Runtime.InteropServices.*; class ClassC { public static boolean IsHiddenMethod(MethodInfo mi) { Object methodAttributes[] = mi.GetCustomAttributes(TypeLibFuncAttribute.class.ToType(), true); if (methodAttributes.length > 0) { TypeLibFuncAttribute tlf = (TypeLibFuncAttribute)(methodAttributes.get_Item(0)); TypeLibFuncFlags flags = tlf.get_Value(); return (int)(flags & TypeLibFuncFlags.FHidden) != 0; } return false; } //IsHiddenMethod } //ClassC

System.Attribute
System.Runtime.InteropServices.TypeLibFuncAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


TypeLibFuncAttribute コンストラクタ (Int16)
アセンブリ: mscorlib (mscorlib.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


TypeLibFuncAttribute コンストラクタ (TypeLibFuncFlags)
アセンブリ: mscorlib (mscorlib.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


TypeLibFuncAttribute コンストラクタ

名前 | 説明 |
---|---|
TypeLibFuncAttribute (Int16) | 指定した System.Runtime.InteropServices.TypeLibFuncFlags 値を使用して、TypeLibFuncAttribute クラスの新しいインスタンスを初期化します。 |
TypeLibFuncAttribute (TypeLibFuncFlags) | 指定した System.Runtime.InteropServices.TypeLibFuncFlags 値を使用して、TypeLibFuncAttribute クラスの新しいインスタンスを初期化します。 |

TypeLibFuncAttribute プロパティ

名前 | 説明 | |
---|---|---|
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) |
![]() | Value | このメソッドの System.Runtime.InteropServices.TypeLibFuncFlags 値を取得します。 |

TypeLibFuncAttribute メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

TypeLibFuncAttribute メンバ
COM タイプ ライブラリからこのメソッド用に元来インポートされた FUNCFLAGS を格納します。
TypeLibFuncAttribute データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) |
![]() | Value | このメソッドの System.Runtime.InteropServices.TypeLibFuncFlags 値を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からTypeLibFuncAttributeを検索する場合は、下記のリンクをクリックしてください。

- TypeLibFuncAttributeのページへのリンク