ArrayConverter.GetProperties 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
값 매개 변수로 지정된 배열 형식에 대한 속성 컬렉션을 가져옵니다.
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입니다.
반환
배열에 노출되는 속성이 포함된 PropertyDescriptorCollection입니다. 속성이 없는 경우 null
입니다.
설명
context
매개 변수는 이 변환기가 호출되는 환경에 대한 추가 정보를 추출하는 데 사용할 수 있습니다. 이 매개 변수는 null
이 될 수 있으므로 항상 확인해야 합니다. 또한 컨텍스트 개체의 속성은 null
을 반환할 수도 있습니다.
특성 배열은 배열을 필터링하는 데 사용됩니다. 매개 변수는 attributes
혼합 Type 및 Attribute 개체를 지정할 수 있습니다. 필터링은 다음 규칙에 의해 정의됩니다.
속성에 동일한 클래스가 Attribute 없으면 반환된 배열에 속성이 포함되지 않습니다.
특성이 인스턴스 Attribute인 경우 속성은 정확히 일치해야 합니다. 그렇지 않으면 반환된 배열에 포함되지 않습니다.
인스턴스가 Attribute 지정되고 기본 속성인 경우 속성에 인스턴스가 없더라도 반환된 배열에 Attribute 포함됩니다.