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

Gets a value indicating whether the given object value is valid for this type.

[Visual Basic]
Overloads Overridable Public Function IsValid( _
   ByVal context As ITypeDescriptorContext, _
   ByVal value As Object _
) As Boolean
[C#]
public virtual bool IsValid(
   ITypeDescriptorContext context,
   object value
);
[C++]
public: virtual bool IsValid(
   ITypeDescriptorContext* context,
   Object* value
);
[JScript]
public function IsValid(
   context : ITypeDescriptorContext,
   value : Object
) : Boolean;

Parameters

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

Return Value

True if the provided value is valid for this 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.IsValid Overload List | ITypeDescriptorContext