Editar

Compartir a través de


VirtualizationCacheLengthConverter.ConvertTo Method

Definition

Converts the specified VirtualizationCacheLength to an object of the specified type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object

Parameters

typeDescriptorContext
ITypeDescriptorContext

An object that provides a format context.

cultureInfo
CultureInfo

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

value
Object

A VirtualizationCacheLength to convert to another type.

destinationType
Type

The type to convert to.

Returns

The converted object.

Attributes

Exceptions

destinationType is null.

value is null.

-or-

value is not a VirtualizationCacheLength.

Remarks

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

Applies to