TypeConverter.GetProperties 메서드

정의

값 매개 변수로 지정된 배열 형식에 대한 속성 컬렉션을 반환합니다.

오버로드

GetProperties(Object)

값 매개 변수로 지정된 배열 형식에 대한 속성 컬렉션을 반환합니다.

GetProperties(ITypeDescriptorContext, Object)

지정된 컨텍스트를 사용하여, 값 매개 변수로 지정한 배열 형식에 대한 속성 컬렉션을 반환합니다.

GetProperties(ITypeDescriptorContext, Object, Attribute[])

지정된 컨텍스트 및 특성을 사용하여 값 매개 변수로 지정된 배열 형식에 대한 속성 컬렉션을 반환합니다.

GetProperties(Object)

Source:
TypeConverter.cs
Source:
TypeConverter.cs
Source:
TypeConverter.cs

값 매개 변수로 지정된 배열 형식에 대한 속성 컬렉션을 반환합니다.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties (object value);
public System.ComponentModel.PropertyDescriptorCollection? GetProperties (object value);
member this.GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (value As Object) As PropertyDescriptorCollection

매개 변수

value
Object

속성을 가져올 배열 형식을 지정하는 Object입니다.

반환

이 데이터 형식에 대해 공개된 속성을 가진 PropertyDescriptorCollection 또는 속성이 없는 경우 null 입니다.

설명

이 클래스에서 구현될 때 이 메서드는 항상 null를 반환합니다.

기본적으로 형식은 속성을 반환하지 않습니다. 이 메서드를 쉽게 구현하면 올바른 데이터 형식을 호출 GetProperties 할 수 있습니다.

적용 대상

GetProperties(ITypeDescriptorContext, Object)

Source:
TypeConverter.cs
Source:
TypeConverter.cs
Source:
TypeConverter.cs

지정된 컨텍스트를 사용하여, 값 매개 변수로 지정한 배열 형식에 대한 속성 컬렉션을 반환합니다.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext context, object value);
public System.ComponentModel.PropertyDescriptorCollection? GetProperties (System.ComponentModel.ITypeDescriptorContext? context, object value);
member this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (context As ITypeDescriptorContext, value As Object) As PropertyDescriptorCollection

매개 변수

context
ITypeDescriptorContext

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

value
Object

속성을 가져올 배열 형식을 지정하는 Object입니다.

반환

이 데이터 형식에 대해 공개된 속성을 가진 PropertyDescriptorCollection 또는 속성이 없는 경우 null 입니다.

설명

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

이 클래스에서 구현될 때 이 메서드는 항상 null를 반환합니다.

기본적으로 형식은 속성을 반환하지 않습니다. 이 메서드를 쉽게 구현하면 올바른 데이터 형식을 호출 GetProperties 할 수 있습니다.

추가 정보

적용 대상

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Source:
TypeConverter.cs
Source:
TypeConverter.cs
Source:
TypeConverter.cs

지정된 컨텍스트 및 특성을 사용하여 값 매개 변수로 지정된 배열 형식에 대한 속성 컬렉션을 반환합니다.

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

매개 변수

context
ITypeDescriptorContext

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

value
Object

속성을 가져올 배열 형식을 지정하는 Object입니다.

attributes
Attribute[]

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

반환

이 데이터 형식에 대해 공개된 속성을 가진 PropertyDescriptorCollection 또는 속성이 없는 경우 null 입니다.

설명

이 클래스에서 구현될 때 이 메서드는 항상 null를 반환합니다.

상속자 참고

변환하려는 형식이 속성을 지원하는 경우 이 메서드를 재정의합니다.

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

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

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

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

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

  • Attribute instance 지정되고 기본 속성인 경우 속성에 의 instance Attribute 없는 경우에도 반환된 배열에 포함됩니다.

추가 정보

적용 대상