This topic has not yet been rated Rate this topic

InArgument(Of T) Class

A binding terminal that represents the flow of data into an activity.

System.Object
  System.Activities.Argument
    System.Activities.InArgument
      System.Activities.InArgument(Of T)

Namespace:  System.Activities
Assembly:  System.Activities (in System.Activities.dll)
[TypeConverterAttribute(typeof(InArgumentConverter))]
[ContentPropertyAttribute("Expression")]
public sealed class InArgument<T> : InArgument

Type Parameters

T

The data type of the InArgument(Of T).

The InArgument(Of T) type exposes the following members.

  Name Description
Public method InArgument(Of T) Initializes a new instance of the InArgument(Of T) class using default values.
Public method InArgument(Of T)(T) Initializes a new instance of the InArgument(Of T) class using the specified value.
Public method InArgument(Of T)(Activity(Of T)) Initializes a new instance of the InArgument(Of T) class using the specified Activity(Of TResult).
Public method InArgument(Of T)(DelegateArgument) Initializes a new instance of the InArgument(Of T) class using the specified DelegateArgument.
Public method InArgument(Of T)(Expression(Of Func(Of ActivityContext, T))) Initializes a new instance of the InArgument(Of T) class using the specified expression.
Public method InArgument(Of T)(Variable) Initializes a new instance of the InArgument(Of T) class using the specified Variable.
Top
  Name Description
Public property ArgumentType Gets the data type for the data bound to this Argument. (Inherited from Argument.)
Public property Direction Gets an ArgumentDirection that specifies whether the Argument represents the flow of data into an activity, out of an activity, or both into and out of an activity. (Inherited from Argument.)
Public property EvaluationOrder Gets or sets a zero-based value that specifies the order in which the argument is evaluated. (Inherited from Argument.)
Public property Expression Gets a Activity(Of TResult) that represents the value of this InArgument(Of T).
Top
  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FromDelegateArgument Initializes and returns a new InArgument(Of T) using the specified DelegateArgument.
Public method Static member FromExpression Initializes and returns a new InArgument(Of T) using the specified Activity(Of TResult).
Public method Static member FromValue Initializes and returns a new InArgument(Of T) using the specified value.
Public method Static member FromVariable Initializes and returns a new InArgument(Of T) using the specified Variable.
Public method Get Gets the value of the InArgument(Of T) using the specified activity context.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLocation Gets the Location for this Argument. (Inherited from Argument.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Set(ActivityContext, Object) Sets the value of the argument using the specified activity context. (Inherited from Argument.)
Public method Set(ActivityContext, T) Sets the value of the InArgument(Of T) using the specified value.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public operator Static member Widening(T to InArgument(Of T)) Initializes and returns a new InArgument(Of T) using the specified value.
Public operator Static member Widening(Activity(Of T) to InArgument(Of T)) Initializes and returns a new InArgument(Of T) using the specified Activity(Of TResult).
Public operator Static member Widening(DelegateArgument to InArgument(Of T)) Initializes and returns a new InArgument(Of T) using the specified DelegateArgument.
Public operator Static member Widening(Variable to InArgument(Of T)) Initializes and returns a new InArgument(Of T) using the specified Variable.
Top

In this example, a workflow is created that consists of a single WriteLine activity. The WriteLine activity has an InArgument(Of T) named Text. The host application creates an instance of the workflow and passes a string, which maps to the Text argument of the WriteLine and is used by the WriteLine activity.

Activity wf = new WriteLine();

Dictionary<string, object> wfParams = new Dictionary<string, object>();
wfParams.Add("Text", "Hello World!");

WorkflowInvoker.Invoke(wf, wfParams);

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ