カスタム属性ビルダを使用して、カスタム属性を設定します。
Overloads Public Sub SetCustomAttribute( _
ByVal customBuilder As CustomAttributeBuilder _)
[C#]
public void SetCustomAttribute(CustomAttributeBuildercustomBuilder);
[C++]
public: void SetCustomAttribute(CustomAttributeBuilder* customBuilder);
[JScript]
public function SetCustomAttribute(
customBuilder : CustomAttributeBuilder);
パラメータ
- customBuilder
カスタム属性を定義するためのヘルパ クラスのインスタンス。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | con が null 参照 (Visual Basic では Nothing) です。 |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- ReflectionPermission SecurityAction.Demand、ReflectionEmit
参照
TypeBuilder クラス | TypeBuilder メンバ | System.Reflection.Emit 名前空間 | TypeBuilder.SetCustomAttribute オーバーロードの一覧