編輯

共用方式為


ActivityBindTypeConverter.ConvertFrom Method

Definition

Converts the specified object to an ActivityBind, using the specified context and culture information.

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

Parameters

context
ITypeDescriptorContext

The ITypeDescriptorContext that provides a format context.

culture
CultureInfo

An optional CultureInfo. If not supplied, the current culture is assumed.

valueToConvert
Object

The Object to convert.

Returns

The Object that represents the converted value.

Exceptions

An error occurred while converting valueToConvert to an ActivityBind.

Remarks

This converter can only convert an ActivityBind object to and from 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