Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ActivityBindTypeConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public override object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	object valueToConvert
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

The ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization.CultureInfo

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

valueToConvert
Type: System.Object

The Object to convert.

Return Value

Type: System.Object

The Object that represents the converted value.

Exception Condition
InvalidOperationException

An error occurred while converting valueToConvert to an ActivityBind.

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).

.NET Framework
Available since 3.0
Return to top
Show:
© 2018 Microsoft