RepeatBehaviorConverter.ConvertTo 方法

定义

RepeatBehavior 的实例转换为支持的目标类型。

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

参数

context
ITypeDescriptorContext

转换所需的上下文信息。

cultureInfo
CultureInfo

要在转换过程中考虑的区域性信息。

value
Object

要进行计算以供转换的对象。

destinationType
Type

要进行计算以供转换的目标类型。

返回

Object

唯一支持的目标类型为 StringInstanceDescriptor

属性

适用于