CodeTypeParameter.CustomAttributes プロパティ
アセンブリ: System (system.dll 内)

Dim instance As CodeTypeParameter Dim value As CodeAttributeDeclarationCollection value = instance.CustomAttributes
public: property CodeAttributeDeclarationCollection^ CustomAttributes { CodeAttributeDeclarationCollection^ get (); }
型パラメータのカスタム属性を示す CodeAttributeDeclarationCollection。既定値は null 参照 (Visual Basic では Nothing) です。

このプロパティを使用して、型パラメータの宣言にメタデータ属性を追加できます。
![]() |
---|
このプロパティは既定では null 参照 (Visual Basic では Nothing) で、参照する前に確認する必要があります。 |

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

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からCodeTypeParameter.CustomAttributes プロパティを検索する場合は、下記のリンクをクリックしてください。

- CodeTypeParameter.CustomAttributes プロパティのページへのリンク