ArrayConverter.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);
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 형식의 배열입니다.

반환

PropertyDescriptorCollection

배열에 노출되는 속성이 포함된 PropertyDescriptorCollection입니다. 속성이 없는 경우 null입니다.

설명

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

특성 배열은 배열을 필터링하는 데 사용됩니다. 매개 변수는 attributes 혼합 TypeAttribute 개체를 지정할 수 있습니다. 필터링은 다음 규칙에 의해 정의됩니다.

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

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

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

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

적용 대상