AttributeTableBuilder.AddCustomAttributes Metoda

Definice

Přidá obsah zadaných atributů do tohoto tvůrce.

Přetížení

Name Description
AddCustomAttributes(Type, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

AddCustomAttributes(Type, MemberDescriptor, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

AddCustomAttributes(Type, MemberInfo, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

AddCustomAttributes(Type, String, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

AddCustomAttributes(Type, DependencyProperty, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

Poznámky

Pokud je atribut v konfliktu s jiným atributem, který je již součástí tvůrce, nahradí poslední přidaný atribut předchozí atributy.

Při vytváření velké tabulky atributů použijte AddCallback k odložit práci vytváření atributů, dokud nebudou potřeba.

AddCustomAttributes(Type, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

public:
 void AddCustomAttributes(Type ^ type, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes(Type type, params Attribute[] attributes);
member this.AddCustomAttributes : Type * Attribute[] -> unit
Public Sub AddCustomAttributes (type As Type, ParamArray attributes As Attribute())

Parametry

type
Type

Typ pro přidání atributů na úrovni třídy.

attributes
Attribute[]

Atributy, které jsou přidány do tvůrce.

Výjimky

type nebo attributes je null.

Poznámky

Pokud je atribut v konfliktu s jiným atributem, který je již součástí tvůrce, nahradí poslední přidaný atribut předchozí atributy.

Při vytváření velké tabulky atributů použijte AddCallback k odložit práci vytváření atributů, dokud nebudou potřeba.

Platí pro

AddCustomAttributes(Type, MemberDescriptor, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

public:
 void AddCustomAttributes(Type ^ ownerType, System::ComponentModel::MemberDescriptor ^ descriptor, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes(Type ownerType, System.ComponentModel.MemberDescriptor descriptor, params Attribute[] attributes);
member this.AddCustomAttributes : Type * System.ComponentModel.MemberDescriptor * Attribute[] -> unit
Public Sub AddCustomAttributes (ownerType As Type, descriptor As MemberDescriptor, ParamArray attributes As Attribute())

Parametry

ownerType
Type

Typ, který obsahuje člen identifikovaný descriptor.

descriptor
MemberDescriptor

Informace o události nebo vlastnosti, ke kterým jsou atributy přidány.

attributes
Attribute[]

Atributy, které jsou přidány do tvůrce.

Výjimky

ownerTypenebo descriptorattributes je null.

Poznámky

Pokud je atribut v konfliktu s jiným atributem, který je již součástí tvůrce, nahradí poslední přidaný atribut předchozí atributy.

Při vytváření velké tabulky atributů použijte AddCallback k odložit práci vytváření atributů, dokud nebudou potřeba.

Platí pro

AddCustomAttributes(Type, MemberInfo, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

public:
 void AddCustomAttributes(Type ^ ownerType, System::Reflection::MemberInfo ^ member, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes(Type ownerType, System.Reflection.MemberInfo member, params Attribute[] attributes);
member this.AddCustomAttributes : Type * System.Reflection.MemberInfo * Attribute[] -> unit
Public Sub AddCustomAttributes (ownerType As Type, member As MemberInfo, ParamArray attributes As Attribute())

Parametry

ownerType
Type

Typ, který obsahuje člen identifikovaný member.

member
MemberInfo

Informace o události nebo vlastnosti, ke kterým jsou atributy přidány.

attributes
Attribute[]

Atributy, které jsou přidány do tvůrce.

Výjimky

ownerTypenebo memberattributes je null.

Poznámky

Pokud je atribut v konfliktu s jiným atributem, který je již součástí tvůrce, nahradí poslední přidaný atribut předchozí atributy.

Při vytváření velké tabulky atributů použijte AddCallback k odložit práci vytváření atributů, dokud nebudou potřeba.

Platí pro

AddCustomAttributes(Type, String, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

public:
 void AddCustomAttributes(Type ^ ownerType, System::String ^ memberName, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes(Type ownerType, string memberName, params Attribute[] attributes);
member this.AddCustomAttributes : Type * string * Attribute[] -> unit
Public Sub AddCustomAttributes (ownerType As Type, memberName As String, ParamArray attributes As Attribute())

Parametry

ownerType
Type

Typ, který obsahuje člen identifikovaný memberName.

memberName
String

Název události nebo informace o vlastnosti, ke kterým jsou atributy přidány.

attributes
Attribute[]

Atributy, které jsou přidány do tvůrce.

Výjimky

ownerType, memberNamenebo attributes je null.

Poznámky

Pokud je atribut v konfliktu s jiným atributem, který je již součástí tvůrce, nahradí poslední přidaný atribut předchozí atributy.

Při vytváření velké tabulky atributů použijte AddCallback k odložit práci vytváření atributů, dokud nebudou potřeba.

Platí pro

AddCustomAttributes(Type, DependencyProperty, Attribute[])

Přidá obsah zadaných atributů do tohoto tvůrce.

public:
 void AddCustomAttributes(Type ^ ownerType, System::Windows::DependencyProperty ^ dp, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes(Type ownerType, System.Windows.DependencyProperty dp, params Attribute[] attributes);
member this.AddCustomAttributes : Type * System.Windows.DependencyProperty * Attribute[] -> unit
Public Sub AddCustomAttributes (ownerType As Type, dp As DependencyProperty, ParamArray attributes As Attribute())

Parametry

ownerType
Type

Typ, který obsahuje závislost identifikovanou .dp

dp
DependencyProperty

Vlastnost závislosti pro přidání atributů.

attributes
Attribute[]

Atributy, které jsou přidány do tvůrce.

Výjimky

ownerTypenebo dpattributes je null.

Poznámky

Pokud je atribut v konfliktu s jiným atributem, který je již součástí tvůrce, nahradí poslední přidaný atribut předchozí atributy.

Při vytváření velké tabulky atributů použijte AddCallback k odložit práci vytváření atributů, dokud nebudou potřeba.

Platí pro