VirtualizationCacheLengthConverter.ConvertTo Metod

Definition

Konverterar det angivna VirtualizationCacheLength till ett objekt av den angivna typen.

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

Parametrar

typeDescriptorContext
ITypeDescriptorContext

Ett objekt som tillhandahåller en formatkontext.

cultureInfo
CultureInfo

Ett objekt som tillhandahåller kulturinformationen som används under konverteringen.

value
Object

A VirtualizationCacheLength för att konvertera till en annan typ.

destinationType
Type

Den typ som ska konverteras till.

Returer

Det konverterade objektet.

Attribut

Undantag

destinationType är null.

value är null.

-eller-

value är inte en VirtualizationCacheLength.

Kommentarer

CanConvertTo Anropa metoden innan du ConvertFrom anropar för att undvika att utlösa ett undantag.

Gäller för