Export (0) Print
Expand All

InArgument<T> Class

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

Namespace:  System.Activities
Assembly:  System.Activities (in System.Activities.dll)

[ContentPropertyAttribute("Expression")]
[TypeConverterAttribute(typeof(InArgumentConverter))]
public sealed class InArgument<T> : InArgument

Type Parameters

T

The data type of the InArgument<T>.

The InArgument<T> type exposes the following members.

  NameDescription
Public methodInArgument<T>()Initializes a new instance of the InArgument<T> class using default values.
Public methodInArgument<T>(T)Initializes a new instance of the InArgument<T> class using the specified value.
Public methodInArgument<T>(Activity<T>)Initializes a new instance of the InArgument<T> class using the specified Activity<TResult>.
Public methodInArgument<T>(DelegateArgument)Initializes a new instance of the InArgument<T> class using the specified DelegateArgument.
Public methodInArgument<T>(Expression<Func<ActivityContext, T>>)Initializes a new instance of the InArgument<T> class using the specified expression.
Public methodInArgument<T>(Variable)Initializes a new instance of the InArgument<T> class using the specified Variable.
Top

  NameDescription
Public propertyArgumentTypeGets the data type for the data bound to this Argument. (Inherited from Argument.)
Public propertyDirectionGets 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 propertyEvaluationOrderGets or sets a zero-based value that specifies the order in which the argument is evaluated. (Inherited from Argument.)
Public propertyExpressionGets an Activity<TResult> that represents the value of this InArgument<T>.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic memberFromDelegateArgumentInitializes and returns a new InArgument<T> using the specified DelegateArgument.
Public methodStatic memberFromExpressionInitializes and returns a new InArgument<T> using the specified Activity<TResult>.
Public methodStatic memberFromValueInitializes and returns a new InArgument<T> using the specified value.
Public methodStatic memberFromVariableInitializes and returns a new InArgument<T> using the specified Variable.
Public methodGetGets the value of the InArgument<T> using the specified activity context.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLocationGets the Location for this Argument. (Inherited from Argument.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSet(ActivityContext, Object)Sets the value of the argument using the specified activity context. (Inherited from Argument.)
Public methodSet(ActivityContext, T)Sets the value of the InArgument<T> using the specified value.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public operatorStatic memberImplicit(T to InArgument<T>)Initializes and returns a new InArgument<T> using the specified value.
Public operatorStatic memberImplicit(Activity<T> to InArgument<T>)Initializes and returns a new InArgument<T> using the specified Activity<TResult>.
Public operatorStatic memberImplicit(DelegateArgument to InArgument<T>)Initializes and returns a new InArgument<T> using the specified DelegateArgument.
Public operatorStatic memberImplicit(Variable to InArgument<T>)Initializes and returns a new InArgument<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<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.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft