TypeDescriptor.CreateProperty 메서드

정의

구성 요소의 기존 속성에 대한 새 속성 설명자를 생성합니다.

오버로드

CreateProperty(Type, String, Type, Attribute[])

지정된 속성 이름, 형식 및 특성 배열을 사용하여 속성 설명자를 만들고 형식에 동적으로 바인딩합니다.

CreateProperty(Type, PropertyDescriptor, Attribute[])

지정된 기존 PropertyDescriptor 및 특성 배열을 사용하여 기존 속성 설명자에서 새 속성 설명자를 만듭니다.

CreateProperty(Type, String, Type, Attribute[])

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

지정된 속성 이름, 형식 및 특성 배열을 사용하여 속성 설명자를 만들고 형식에 동적으로 바인딩합니다.

public:
 static System::ComponentModel::PropertyDescriptor ^ CreateProperty(Type ^ componentType, System::String ^ name, Type ^ type, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.PropertyDescriptor CreateProperty (Type componentType, string name, Type type, params Attribute[] attributes);
static member CreateProperty : Type * string * Type * Attribute[] -> System.ComponentModel.PropertyDescriptor
Public Shared Function CreateProperty (componentType As Type, name As String, type As Type, ParamArray attributes As Attribute()) As PropertyDescriptor

매개 변수

componentType
Type

속성이 멤버인 구성 요소의 Type입니다.

name
String

속성의 이름입니다.

type
Type

속성의 Type입니다.

attributes
Attribute[]

이 속성의 새 특성입니다.

반환

지정 형식에 바인딩되고 지정된 메타데이터 특성이 기존 메타데이터 특성과 병합된 PropertyDescriptor입니다.

추가 정보

적용 대상

CreateProperty(Type, PropertyDescriptor, Attribute[])

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

지정된 기존 PropertyDescriptor 및 특성 배열을 사용하여 기존 속성 설명자에서 새 속성 설명자를 만듭니다.

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

매개 변수

componentType
Type

속성이 멤버인 구성 요소의 Type입니다.

oldPropertyDescriptor
PropertyDescriptor

기존 속성 설명자입니다.

attributes
Attribute[]

이 속성의 새 특성입니다.

반환

지정된 메타데이터 특성이 기존 메타데이터 특성과 병합된 새 PropertyDescriptor입니다.

추가 정보

적용 대상