Edit

Share via


ThemeModeConverter.ConvertTo Method

Definition

Attempts to convert a ThemeMode object to the specified type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
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

The ITypeDescriptorContext for this call.

cultureInfo
CultureInfo

The CultureInfo which is respected when converting.

value
Object

The ThemeMode to convert.

destinationType
Type

The type to which to convert the ThemeMode instance.

Returns

The newly constructed object.

Exceptions

value is null.

value is null or not a ThemeMode, or destinationType isn't a valid destination type.

Applies to