[This is preliminary documentation and is subject to change.]

Returns whether the given instance of TOther is valid for type T

Namespace: Tools.ComponentModelT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
bool IsValid(
	ITypeDescriptorContext context,
	TOther value
)
Visual Basic
Function IsValid ( _
	context As ITypeDescriptorContext, _
	value As TOther _
) As Boolean
Visual C++
bool IsValid(
	ITypeDescriptorContext^ context, 
	TOther value
)
F#
abstract IsValid : 
        context:ITypeDescriptorContext * 
        value:'TOther -> bool 
JScript
function IsValid(
	context : ITypeDescriptorContext, 
	value : TOther
) : boolean

Parameters

context
Type: System.ComponentModel..::..ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
value
Type: TOther
Value to test validity

Return Value

true if the specified value is valid for this type T; otherwise, false.

See Also