ActivityBindTypeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) 方法
定义
使用指定的上下文和区域性将指定的 ActivityBind 对象转换为指定的类型。Converts the specified ActivityBind object to the specified type using the specified context and culture.
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。The ITypeDescriptorContext that provides a format context.
- culture
- CultureInfo
CultureInfo 要转换为的 ActivityBind。The CultureInfo into which the ActivityBind will be converted.
- value
- Object
要转换的 ActivityBind。The ActivityBind to convert.
- destinationType
- Type
Type 要转换为的 ActivityBind。The Type to convert the ActivityBind to.
返回
被转换的对象。The converted object.
注解
ConvertTo 将 ActivityBind 转换为字符串。ConvertTo converts an ActivityBind to a string.
context 可用来提取有关从中调用此转换器的环境的附加信息。context can be used to extract additional information about the environment this converter is being invoked from. 此参数可能为空引用(在 Visual Basic 中为 Nothing),因此总是需要检查。This can be a null reference (Nothing in Visual Basic), so always check. 同样,context 对象的属性也可能返回空引用 (Nothing)。Also, properties on the context object can return a null reference (Nothing).