Export (0) Print
Expand All

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


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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft