GenericTypeParameterBuilder.SetCustomAttribute Метод

Определение

Задает пользовательский атрибут.

Перегрузки

SetCustomAttribute(CustomAttributeBuilder)

Задает настраиваемый атрибут с помощью построителя настраиваемых атрибутов.

SetCustomAttribute(ConstructorInfo, Byte[])

Задает настраиваемый атрибут с помощью большого двоичного объекта пользовательских атрибутов.

SetCustomAttribute(CustomAttributeBuilder)

Source:
GenericTypeParameterBuilder.cs
Source:
GenericTypeParameterBuilder.cs
Source:
GenericTypeParameterBuilder.cs

Задает настраиваемый атрибут с помощью построителя настраиваемых атрибутов.

public:
 void SetCustomAttribute(System::Reflection::Emit::CustomAttributeBuilder ^ customBuilder);
public void SetCustomAttribute (System.Reflection.Emit.CustomAttributeBuilder customBuilder);
member this.SetCustomAttribute : System.Reflection.Emit.CustomAttributeBuilder -> unit
Public Sub SetCustomAttribute (customBuilder As CustomAttributeBuilder)

Параметры

customBuilder
CustomAttributeBuilder

Экземпляр вспомогательного класса, определяющий настраиваемый атрибут.

Исключения

customBuilder имеет значение null.

Применяется к

SetCustomAttribute(ConstructorInfo, Byte[])

Source:
GenericTypeParameterBuilder.cs
Source:
GenericTypeParameterBuilder.cs
Source:
GenericTypeParameterBuilder.cs

Задает настраиваемый атрибут с помощью большого двоичного объекта пользовательских атрибутов.

public:
 void SetCustomAttribute(System::Reflection::ConstructorInfo ^ con, cli::array <System::Byte> ^ binaryAttribute);
public void SetCustomAttribute (System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
member this.SetCustomAttribute : System.Reflection.ConstructorInfo * byte[] -> unit
Public Sub SetCustomAttribute (con As ConstructorInfo, binaryAttribute As Byte())

Параметры

con
ConstructorInfo

Конструктор настраиваемого атрибута.

binaryAttribute
Byte[]

Большой двоичный объект байтов, представляющий атрибут.

Исключения

con имеет значение null.

-или-

binaryAttribute является пустой ссылкой.

Комментарии

Сведения о форматировании binaryAttributeсм. в спецификации метаданных в разделе II спецификации COMMON Language Infrastructure (CLI).

Применяется к