GenericTypeParameterBuilder.SetCustomAttribute Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Задает настраиваемый атрибут.
Перегрузки
| Имя | Описание |
|---|---|
| SetCustomAttribute(CustomAttributeBuilder) |
Задайте настраиваемый атрибут с помощью построителя настраиваемых атрибутов. |
| SetCustomAttribute(ConstructorInfo, Byte[]) |
Задает настраиваемый атрибут с помощью указанного пользовательского BLOB-объекта атрибута. |
SetCustomAttribute(CustomAttributeBuilder)
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- 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[])
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- GenericTypeParameterBuilder.cs
- Исходный код:
- GenericTypeParameterBuilder.cs
Задает настраиваемый атрибут с помощью указанного пользовательского BLOB-объекта атрибута.
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[]
Байтовый BLOB-объект, представляющий атрибут.
Исключения
Комментарии
Сведения о форматировании binaryAttributeсм. в спецификации метаданных в разделе II спецификации CLR.