次の方法で共有


ICustomAttributeProvider.IsDefined メソッド

このメンバに attributeType のインスタンスが 1 つ以上定義されているかどうかを示します。

Function IsDefined( _
   ByVal attributeType As Type, _   ByVal inherit As Boolean _) As Boolean
[C#]
bool IsDefined(
   TypeattributeType,boolinherit);
[C++]
bool IsDefined(
   Type* attributeType,boolinherit);
[JScript]
function IsDefined(
   attributeType : Type,inherit : Boolean) : Boolean;

パラメータ

  • attributeType
    カスタム属性の型。
  • inherit
    true の場合は、継承されたカスタム属性を階層チェインで参照してください。

戻り値

attributeType がこのメンバに定義されている場合は true 。それ以外の場合は false

必要条件

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

参照

ICustomAttributeProvider インターフェイス | ICustomAttributeProvider メンバ | System.Reflection 名前空間