ExpandableObjectConverter.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);
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 형식 컨텍스트를 제공하는 항목입니다.
반품
구성 요소에 대해 노출되는 속성이 있거나 null 속성이 없는 경우 A PropertyDescriptorCollection 입니다.
설명
매개 변수를 context 사용하여 이 변환기가 호출되는 환경에 대한 추가 정보를 추출할 수 있습니다. 이렇게 할 null수 있으므로 항상 확인하세요. 또한 컨텍스트 개체의 속성은 반환 null할 수 있습니다.
배열은 attributes 배열을 필터링하는 데 사용됩니다. 개체 attributes 와 Attribute 개체가 Type 혼합되어 있을 수 있습니다. 필터링은 다음 규칙에 의해 정의됩니다.
속성에 동일한 클래스가 Attribute 없으면 반환된 배열에 속성이 포함되지 않습니다.
특성이 인스턴스 Attribute인 경우 속성은 정확히 일치해야 합니다. 그렇지 않으면 반환된 배열에 포함되지 않습니다.
인스턴스가 Attribute 지정되고 기본 속성인 경우 속성에 인스턴스가 없더라도 반환된 배열에 Attribute 포함됩니다.