Convert<TSource, TDestination> Class

 

An activity to convert an input value from one type to another.

Namespace:   Microsoft.Activities.Expressions
Assembly:  Microsoft.Activities (in Microsoft.Activities.dll)

Inheritance Hierarchy

System.Object
  System.Activities.Activity
    System.Activities.ActivityWithResult
      System.Activities.Activity<TResult>
        System.Activities.CodeActivity<TResult>
          Microsoft.Activities.Expressions.Convert<TSource, TDestination>

Syntax

[ContentPropertyAttribute("Input")]
public class Convert<TSource, TDestination> : CodeActivity<TDestination>
generic<typename TSource, typename TDestination>
[ContentPropertyAttribute("Input")]
public ref class Convert : CodeActivity<TDestination>
[<ContentPropertyAttribute("Input")>]
type Convert<'TSource, 'TDestination> = 
    class
        inherit CodeActivity<'TDestination>
    end
<ContentPropertyAttribute("Input")>
Public Class Convert(Of TSource, TDestination)
    Inherits CodeActivity(Of TDestination)

Type Parameters

  • TSource
    The source type.
  • TDestination
    The destination type.

Constructors

Name Description
System_CAPS_pubmethod Convert<TSource, TDestination>()

Initializes a new instance of the Convert<TSource, TDestination> class.

System_CAPS_pubmethod Convert<TSource, TDestination>(InArgument<TSource>)

Initializes a new instance of the Convert<TSource, TDestination> class.

Properties

Name Description
System_CAPS_protproperty CacheId

(Inherited from Activity.)

System_CAPS_protproperty Constraints

(Inherited from Activity.)

System_CAPS_pubproperty DisplayName

(Inherited from Activity.)

System_CAPS_pubproperty Id

(Inherited from Activity.)

System_CAPS_protproperty Implementation

(Inherited from CodeActivity<TResult>.)

System_CAPS_protproperty ImplementationVersion

(Inherited from CodeActivity<TResult>.)

System_CAPS_pubproperty Input

Gets or sets the input value.

System_CAPS_pubproperty Result

(Inherited from Activity<TResult>.)

System_CAPS_pubproperty ResultType

(Inherited from ActivityWithResult.)

Methods

Name Description
System_CAPS_protmethod CacheMetadata(ActivityMetadata)

(Inherited from CodeActivity<TResult>.)

System_CAPS_protmethod CacheMetadata(CodeActivityMetadata)

Creates and validates a description of the activity?s arguments, variables, child activities, and activity delegates.(Overrides CodeActivity<TResult>.CacheMetadata(CodeActivityMetadata).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Execute(CodeActivityContext)

Performs the execution of the activity.(Overrides CodeActivity<TResult>.Execute(CodeActivityContext).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

(Inherited from CodeActivity<TResult>.)

System_CAPS_pubmethod ToString()

(Inherited from Activity.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Activities.Expressions Namespace

Return to top