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

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: