VirtualizationCacheLengthConverter.ConvertTo Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.
Kommentarer
CanConvertTo Anropa metoden innan du ConvertFrom anropar för att undvika att utlösa ett undantag.