ActivityBindTypeConverter.ConvertTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- context
- ITypeDescriptorContext
The ITypeDescriptorContext that provides a format context.
- culture
- CultureInfo
The CultureInfo into which the ActivityBind will be converted.
- value
- Object
The ActivityBind to convert.
- destinationType
- Type
The Type to convert the ActivityBind to.
Returns
The converted object.
Remarks
ConvertTo converts an ActivityBind to a string.
context
can be used to extract additional information about the environment this converter is being invoked from. This can be a null reference (Nothing
in Visual Basic), so always check. Also, properties on the context
object can return a null reference (Nothing
).
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈