ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Collapse the table of content
Expand the table of content

UriTypeConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Public Overrides Function ConvertFrom ( _
	context As ITypeDescriptorContext, _
	culture As CultureInfo, _
	value As Object _
) As Object

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
culture
Type: System.Globalization.CultureInfo
The CultureInfo to use as the current culture.
value
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 Nothing; then null is returned.

ExceptionCondition
NotSupportedException

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 Nothing, then Nothing is returned. Any conversion of an unsupported Type will cause an exception.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft