UriTypeConverter.IsValid Method (ITypeDescriptorContext, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 override bool IsValid(
	ITypeDescriptorContext context,
	object value


Type: System.ComponentModel.ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

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