NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeConverter.GetProperties (ITypeDescriptorContext, Object, MemberAttribute[])

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;

Parameters

context
An ITypeDescriptorContext that represents a context for the formatter.
value
The value of the object to get the properties for.
attributes
[To be supplied.]

Return Value

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.

Remarks

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).

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.GetProperties Overload List | ITypeDescriptorContext | MemberAttribute