UriTypeConverter::IsValid Method (ITypeDescriptorContext^, Object^)

 

Returns whether the given value object is a Uri or a Uri can be created from it.

Namespace:   System
Assembly:  System (in System.dll)

public:
virtual bool IsValid(
	ITypeDescriptorContext^ context,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

value
Type: System::Object^

The Object to test for validity.

Return Value

Type: System::Boolean

true if value is a Uri or a String from which a Uri can be created; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: