Export (0) Print
Expand All

VirtualizationCacheLengthConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

.NET Framework 4.5

Converts the specified object to a VirtualizationCacheLength.

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

public override Object ConvertFrom(
	ITypeDescriptorContext typeDescriptorContext,
	CultureInfo cultureInfo,
	Object source


Type: System.ComponentModel.ITypeDescriptorContext

An object that provides a format context.

Type: System.Globalization.CultureInfo

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

Type: System.Object

The object to convert to a VirtualizationCacheLength.

Return Value

Type: System.Object
The converted object.


source is null.


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

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft