TypeBuilder.IsDefined メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TypeBuilder.IsDefined メソッドの意味・解説 

TypeBuilder.IsDefined メソッド

カスタム属性が現在の型に適用されているかどうかを判断します。

名前空間: System.Reflection.Emit
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Overrides Function
 IsDefined ( _
    attributeType As Type, _
    inherit As Boolean _
) As Boolean
Dim instance As TypeBuilder
Dim attributeType As Type
Dim inherit As Boolean
Dim returnValue As Boolean

returnValue = instance.IsDefined(attributeType, inherit)
public override bool IsDefined (
    Type attributeType,
    bool inherit
)
public:
virtual bool IsDefined (
    Type^ attributeType, 
    bool inherit
) override
public boolean IsDefined (
    Type attributeType, 
    boolean inherit
)
public override function IsDefined (
    attributeType : Type, 
    inherit : boolean
) : boolean

パラメータ

attributeType

検索する属性の型。この型に割り当てることができる属性だけが返されます。

inherit

このメンバの継承チェーンを検索して属性を見つけるかどうかを指定します。

戻り値
attributeType の 1 つ以上のインスタンス、または attributeType から派生した属性がこの型で定義されている場合は true。それ以外の場合は false。

例外例外
例外の種類条件

NotSupportedException

このメソッドは現在、不完全な型に対してはサポートされていません。GetType を使用して型を取得し、返された Type に対して IsDefined を呼び出します。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TypeBuilder クラス
TypeBuilder メンバ
System.Reflection.Emit 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

TypeBuilder.IsDefined メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



TypeBuilder.IsDefined メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS