VirtualizationCacheLengthConverter.ConvertFrom Method

Definition

Converts the specified object to a VirtualizationCacheLength.

C#
public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object source);

Parameters

typeDescriptorContext
ITypeDescriptorContext

An object that provides a format context.

cultureInfo
CultureInfo

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

source
Object

The object to convert to a VirtualizationCacheLength.

Returns

The converted object.

Exceptions

source is null.

-or-

source cannot be converted to a VirtualizationCacheLength.

Remarks

The VirtualizationCacheLengthConverter can convert the following types to a VirtualizationCacheLength:

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

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10