VirtualizationCacheLengthConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

.NET Framework (current version)
 

Converts the specified object to a VirtualizationCacheLength.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Overrides Function ConvertFrom (
	typeDescriptorContext As ITypeDescriptorContext,
	cultureInfo As CultureInfo,
	source As Object
) As Object

Parameters

typeDescriptorContext
Type: System.ComponentModel.ITypeDescriptorContext

An object that provides a format context.

cultureInfo
Type: System.Globalization.CultureInfo

An object that provides the culture information that is used during conversion.

source
Type: System.Object

The object to convert to a VirtualizationCacheLength.

Return Value

Type: System.Object

The converted object.

Exception Condition
NotSupportedException

source is null.

--or--

source cannot be converted to a VirtualizationCacheLength.

The VirtualizationCacheLengthConverter can convert the following types to a VirtualizationCacheLength:

Call the CanConvertFrom method before calling the ConvertFrom to avoid throwing an exception.

.NET Framework
Available since 4.5
Return to top
Show: