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

定義

RepeatBehavior 的執行個體轉換為支援的目的型別。Converts an instance of RepeatBehavior to a supported destination type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj

參數

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

轉換所需的內容資訊。Context information required for conversion.

cultureInfo
CultureInfo CultureInfo CultureInfo

轉換期間應遵守的文化特性資訊。Cultural information to respect during conversion.

value
Object Object Object

正在評估以進行轉換的物件。Object being evaluated for conversion.

destinationType
Type Type Type

正在評估進行轉換的目的型別。Destination type being evaluated for conversion.

傳回

只支援 StringInstanceDescriptor 目的型別。The only supported destination types are String and InstanceDescriptor.

適用於