CacheModeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) CacheModeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) CacheModeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) CacheModeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

定義

CacheMode を指定した型に変換します。Converts a CacheMode to the specified type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

パラメーター

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

書式指定コンテキストを提供する ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

言語や暦システムなど、カルチャに関する情報を表す CultureInfoA CultureInfo that represents information about a culture, such as language and calendar system. null の場合があります。Can be null.

value
Object Object Object Object

変換対象の ObjectThe Object to convert.

destinationType
Type Type Type Type

変換後の TypeThe Type to convert to.

戻り値

変換後のオブジェクト。The converted object.

例外

valuenull であるか、valueCacheMode でないか、destinationType が文字列ではありません。value is null, value is not a CacheMode, or destinationType is not a string.

適用対象