ExpandableObjectConverter.GetProperties 메서드

정의

값 매개 변수로 지정된 개체 형식에 대한 속성 컬렉션을 가져옵니다.

public:
 override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

매개 변수

context
ITypeDescriptorContext

ITypeDescriptorContext 형식 컨텍스트를 제공하는 항목입니다.

value
Object

Object 속성을 가져올 개체의 형식을 지정하는 개체입니다.

attributes
Attribute[]

필터로 사용할 형식 Attribute 의 배열입니다.

반품

구성 요소에 대해 노출되는 속성이 있거나 null 속성이 없는 경우 A PropertyDescriptorCollection 입니다.

설명

매개 변수를 context 사용하여 이 변환기가 호출되는 환경에 대한 추가 정보를 추출할 수 있습니다. 이렇게 할 null수 있으므로 항상 확인하세요. 또한 컨텍스트 개체의 속성은 반환 null할 수 있습니다.

배열은 attributes 배열을 필터링하는 데 사용됩니다. 개체 attributesAttribute 개체가 Type 혼합되어 있을 수 있습니다. 필터링은 다음 규칙에 의해 정의됩니다.

  • Type 개체는 와일드카드로 처리되며 특성 집합에 있는 모든 속성과 Type 일치합니다.

  • 속성에 동일한 클래스가 Attribute 없으면 반환된 배열에 속성이 포함되지 않습니다.

  • 특성이 인스턴스 Attribute인 경우 속성은 정확히 일치해야 합니다. 그렇지 않으면 반환된 배열에 포함되지 않습니다.

  • 인스턴스가 Attribute 지정되고 기본 속성인 경우 속성에 인스턴스가 없더라도 반환된 배열에 Attribute 포함됩니다.

적용 대상

추가 정보