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.ConvertToString (ITypeDescriptorContext, Object)

Converts the specified value to a string representation.

[Visual Basic]
Overloads Public Function ConvertToString( _
   ByVal context As ITypeDescriptorContext, _
   ByVal value As Object _
) As String
[C#]
public string ConvertToString(
   ITypeDescriptorContext context,
   object value
);
[C++]
public: String* ConvertToString(
   ITypeDescriptorContext* context,
   Object* value
);
[JScript]
public function ConvertToString(
   context : ITypeDescriptorContext,
   value : Object
) : String;

Parameters

context
An ITypeDescriptorContext that represents a context for the formatter.
value
The object to convert.

Return Value

A string representation of the object. Depending on the implementation of the value formatter, it may be possible to pass this string back into the value formatter to re-create an instance of the object.

Remarks

The context can be used to extract additional information about the environment this converter is being invoked from. This may be a null reference (in Visual Basic 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.ConvertToString Overload List | ITypeDescriptorContext