Retrieves the set of properties for this type. By default, a type has does not return any properties. An easy implementation of this method can just call TypeDescriptor.GetProperties for the correct data type.
[Visual Basic] Overloads Overridable Public Function GetProperties( _ ByVal context As ITypeDescriptorContext, _ ByVal value As Object, _ ByVal attributes() As MemberAttribute _ ) As PropertyDescriptorCollection [C#] public virtual PropertyDescriptorCollection GetProperties( ITypeDescriptorContext context, object value, MemberAttribute[] attributes ); [C++] public: virtual PropertyDescriptorCollection* GetProperties( ITypeDescriptorContext* context, Object* value, MemberAttribute* attributes[] ); [JScript] public function GetProperties( context : ITypeDescriptorContext, value : Object, attributes : MemberAttribute[] ) : PropertyDescriptorCollection;
The set of properties that should be exposed for this data type. If no properties should be exposed, thsi may return null. The default implementation always returns null.
As implemented in this class, returns a null reference (in Visual Basic Nothing).
The context can be used to extract additional information about the environment this converter is being invoked from. This may be a null reference (Nothing), so you should always check. Also, properties on the context object may also return a null reference (Nothing).
TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.GetProperties Overload List | ITypeDescriptorContext | MemberAttribute