RequestCachePolicyConverter.ConvertTo Metod

Definition

Konverterar det här objektet till 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

Formatkontexten.

cultureInfo
CultureInfo

Kulturen som ska användas för konverteringen.

value
Object

Principen som ska konverteras.

destinationType
Type

Den typ som ska konverteras till.

Returer

Objektet som är konstruerat från konverteringen.

Attribut

Undantag

destinationType är null.

Kommentarer

ConvertTo introduceras i .NET Framework version 3.5. Mer information finns i Versioner och beroenden.

Gäller för