AttributeTableBuilder.AddCustomAttributes 메서드

정의

제공된 특성의 내용을 이 작성기에 추가합니다.

오버로드

Name Description
AddCustomAttributes(Type, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

AddCustomAttributes(Type, MemberDescriptor, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

AddCustomAttributes(Type, MemberInfo, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

AddCustomAttributes(Type, String, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

AddCustomAttributes(Type, DependencyProperty, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

설명

특성이 작성기에서 이미 포함된 다른 특성과 충돌하는 경우 추가된 마지막 특성은 이전 특성을 대체합니다.

큰 특성 테이블을 빌드할 때 필요할 때까지 특성을 만드는 작업을 지연하는 데 사용합니다 AddCallback .

AddCustomAttributes(Type, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

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())

매개 변수

type
Type

클래스 수준 특성을 추가할 형식입니다.

attributes
Attribute[]

작성기에서 추가되는 특성입니다.

예외

type 또는 attributes .입니다 null.

설명

특성이 작성기에서 이미 포함된 다른 특성과 충돌하는 경우 추가된 마지막 특성은 이전 특성을 대체합니다.

큰 특성 테이블을 빌드할 때 필요할 때까지 특성을 만드는 작업을 지연하는 데 사용합니다 AddCallback .

적용 대상

AddCustomAttributes(Type, MemberDescriptor, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

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())

매개 변수

ownerType
Type

로 식별 descriptor되는 멤버를 포함하는 형식입니다.

descriptor
MemberDescriptor

특성이 추가되는 이벤트 또는 속성 정보입니다.

attributes
Attribute[]

작성기에서 추가되는 특성입니다.

예외

ownerType, descriptor 또는 attributes 입니다 null.

설명

특성이 작성기에서 이미 포함된 다른 특성과 충돌하는 경우 추가된 마지막 특성은 이전 특성을 대체합니다.

큰 특성 테이블을 빌드할 때 필요할 때까지 특성을 만드는 작업을 지연하는 데 사용합니다 AddCallback .

적용 대상

AddCustomAttributes(Type, MemberInfo, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

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())

매개 변수

ownerType
Type

로 식별 member되는 멤버를 포함하는 형식입니다.

member
MemberInfo

특성이 추가되는 이벤트 또는 속성 정보입니다.

attributes
Attribute[]

작성기에서 추가되는 특성입니다.

예외

ownerType, member 또는 attributes 입니다 null.

설명

특성이 작성기에서 이미 포함된 다른 특성과 충돌하는 경우 추가된 마지막 특성은 이전 특성을 대체합니다.

큰 특성 테이블을 빌드할 때 필요할 때까지 특성을 만드는 작업을 지연하는 데 사용합니다 AddCallback .

적용 대상

AddCustomAttributes(Type, String, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

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())

매개 변수

ownerType
Type

로 식별 memberName되는 멤버를 포함하는 형식입니다.

memberName
String

특성이 추가되는 이벤트 또는 속성 정보의 이름입니다.

attributes
Attribute[]

작성기에서 추가되는 특성입니다.

예외

ownerType, memberName또는 attributes 입니다 null.

설명

특성이 작성기에서 이미 포함된 다른 특성과 충돌하는 경우 추가된 마지막 특성은 이전 특성을 대체합니다.

큰 특성 테이블을 빌드할 때 필요할 때까지 특성을 만드는 작업을 지연하는 데 사용합니다 AddCallback .

적용 대상

AddCustomAttributes(Type, DependencyProperty, Attribute[])

제공된 특성의 내용을 이 작성기에 추가합니다.

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())

매개 변수

ownerType
Type

로 식별 dp되는 종속성을 포함하는 형식입니다.

dp
DependencyProperty

특성을 추가할 종속성 속성입니다.

attributes
Attribute[]

작성기에서 추가되는 특성입니다.

예외

ownerType, dp 또는 attributes 입니다 null.

설명

특성이 작성기에서 이미 포함된 다른 특성과 충돌하는 경우 추가된 마지막 특성은 이전 특성을 대체합니다.

큰 특성 테이블을 빌드할 때 필요할 때까지 특성을 만드는 작업을 지연하는 데 사용합니다 AddCallback .

적용 대상