Export (0) Print
Expand All

UriTypeConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts the given object to the type of this converter, using the specified context and culture information.

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

public override Object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value


Type: System.ComponentModel.ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
Type: System.Globalization.CultureInfo
The CultureInfo to use as the current culture.
Type: System.Object
The Object to convert to an instance of Uri.

Return Value

Type: System.Object
A Uri instance that represents the converted Object. If the value parameter is null; then null is returned.


The conversion cannot be performed. This exception occurs if the value is a type other than String or Uri. or the context or culture parameters are not supported for the value parameter.

The ConvertFrom method converts an Object to a Uri instance. If the value parameter contains an empty String or null, then null is returned. Any conversion of an unsupported Type will cause an exception.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2014 Microsoft