CodeTypeParameter.CustomAttributes プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeTypeParameter.CustomAttributes プロパティの意味・解説 

CodeTypeParameter.CustomAttributes プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

型パラメータカスタム属性取得します

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

Public ReadOnly Property
 CustomAttributes As CodeAttributeDeclarationCollection
Dim instance As CodeTypeParameter
Dim value As CodeAttributeDeclarationCollection

value = instance.CustomAttributes
public CodeAttributeDeclarationCollection CustomAttributes { get;
 }
public:
property CodeAttributeDeclarationCollection^ CustomAttributes {
    CodeAttributeDeclarationCollection^ get ();
}
/** @property */
public CodeAttributeDeclarationCollection get_CustomAttributes
 ()
public function get CustomAttributes
 () : CodeAttributeDeclarationCollection

プロパティ
型パラメータカスタム属性を示す CodeAttributeDeclarationCollection。既定値null 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

CustomAttributes プロパティ使用して新しカスタム属性追加する方法を、次のコード例示します。このコード例は、CodeTypeParameter クラストピック取り上げているコード例一部分です。

kType.CustomAttributes.Add _
    (New CodeAttributeDeclaration("System.ComponentModel.DescriptionAttribute",
 _
        New CodeAttributeArgument(New CodePrimitiveExpression("KeyType"))))
kType.CustomAttributes.Add(new CodeAttributeDeclaration(
    "System.ComponentModel.DescriptionAttribute",
        new CodeAttributeArgument(new CodePrimitiveExpression("KeyType"))));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeTypeParameter クラス
CodeTypeParameter メンバ
System.CodeDom 名前空間
CodeAttributeDeclarationCollection クラス



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

CodeTypeParameter.CustomAttributes プロパティのお隣キーワード
検索ランキング

   

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



CodeTypeParameter.CustomAttributes プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS