TypeDescriptor.AddAttributes 메서드

정의

클래스 수준 특성을 대상 구성 요소에 추가합니다.

오버로드

AddAttributes(Object, Attribute[])

클래스 수준 특성을 대상 구성 요소 인스턴스에 추가합니다.

AddAttributes(Type, Attribute[])

클래스 수준 특성을 대상 구성 요소 형식에 추가합니다.

AddAttributes(Object, Attribute[])

Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs

클래스 수준 특성을 대상 구성 요소 인스턴스에 추가합니다.

public:
 static System::ComponentModel::TypeDescriptionProvider ^ AddAttributes(System::Object ^ instance, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.TypeDescriptionProvider AddAttributes (object instance, params Attribute[] attributes);
static member AddAttributes : obj * Attribute[] -> System.ComponentModel.TypeDescriptionProvider
Public Shared Function AddAttributes (instance As Object, ParamArray attributes As Attribute()) As TypeDescriptionProvider

매개 변수

instance
Object

대상 구성 요소의 인스턴스입니다.

attributes
Attribute[]

구성 요소의 클래스에 추가할 Attribute 개체의 배열입니다.

반환

지정된 속성을 추가하는 데 사용된 새로 만든 TypeDescriptionProvider입니다.

예외

매개 변수 중 하나 또는 둘 다 null입니다.

설명

메서드는 AddAttributes(Object, Attribute[]) 구성 요소의 지정된 instance 클래스 수준 특성을 추가합니다. 이 메서드는 이미 특성을 사용 하 여 제공된 된 특성을 병합 하는 형식 설명 공급자를 만들어 바로 가기를 제공 하는 Visual Studio Windows Forms 디자이너와 속성 창을 사용 하 여 애플리케이션의 일반적인 요구 사항은 이기 때문에 클래스에 존재 합니다. 반환 값은 특성을 추가하는 데 사용된 형식 설명 공급자입니다. 이 공급자는 나중에 추가된 특성이 RemoveProvider(TypeDescriptionProvider, Object) 더 이상 필요하지 않은 경우 메서드에 전달할 수 있습니다.

추가 정보

적용 대상

AddAttributes(Type, Attribute[])

Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs

클래스 수준 특성을 대상 구성 요소 형식에 추가합니다.

public:
 static System::ComponentModel::TypeDescriptionProvider ^ AddAttributes(Type ^ type, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.TypeDescriptionProvider AddAttributes (Type type, params Attribute[] attributes);
static member AddAttributes : Type * Attribute[] -> System.ComponentModel.TypeDescriptionProvider
Public Shared Function AddAttributes (type As Type, ParamArray attributes As Attribute()) As TypeDescriptionProvider

매개 변수

type
Type

대상 구성 요소의 Type입니다.

attributes
Attribute[]

구성 요소의 클래스에 추가할 Attribute 개체의 배열입니다.

반환

지정된 속성을 추가하는 데 사용된 새로 만든 TypeDescriptionProvider입니다.

예외

매개 변수 중 하나 또는 둘 다 null입니다.

설명

메서드는 AddAttributes(Type, Attribute[]) 지정된 구성 요소 형식에 클래스 수준 특성을 추가합니다. 이 메서드는 이미 특성을 사용 하 여 제공된 된 특성을 병합 하는 형식 설명 공급자를 만들어 바로 가기를 제공 하는 Visual Studio Windows Forms 디자이너와 속성 창을 사용 하 여 애플리케이션의 일반적인 요구 사항은 이기 때문에 클래스에 존재 합니다. 반환 값은 특성을 추가하는 데 사용된 형식 설명 공급자입니다. 이 공급자는 나중에 추가된 특성이 RemoveProvider(TypeDescriptionProvider, Type) 더 이상 필요하지 않은 경우 메서드에 전달할 수 있습니다.

추가 정보

적용 대상