InArgument(T) Class
TOC
Collapse the table of content
Expand the table of content

InArgument<T> Class

.NET Framework (current version)
 

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

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

System.Object
  System.Activities.Argument
    System.Activities.InArgument
      System.Activities.InArgument<T>

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

Type Parameters

T

The data type of the InArgument<T>.

NameDescription
System_CAPS_pubmethodInArgument<T>()

Initializes a new instance of the InArgument<T> class using default values.

System_CAPS_pubmethodInArgument<T>(T)

Initializes a new instance of the InArgument<T> class using the specified value.

System_CAPS_pubmethodInArgument<T>(Activity<T>)

Initializes a new instance of the InArgument<T> class using the specified Activity<TResult>.

System_CAPS_pubmethodInArgument<T>(DelegateArgument)

Initializes a new instance of the InArgument<T> class using the specified DelegateArgument.

System_CAPS_pubmethodInArgument<T>(Expression<Func<ActivityContext, T>>)

Initializes a new instance of the InArgument<T> class using the specified expression.

System_CAPS_pubmethodInArgument<T>(Variable)

Initializes a new instance of the InArgument<T> class using the specified Variable.

NameDescription
System_CAPS_pubpropertyArgumentType

Gets the data type for the data bound to this Argument.(Inherited from Argument.)

System_CAPS_pubpropertyDirection

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

System_CAPS_pubpropertyEvaluationOrder

Gets or sets a zero-based value that specifies the order in which the argument is evaluated.(Inherited from Argument.)

System_CAPS_pubpropertyExpression

Gets an Activity<TResult> that represents the value of this InArgument<T>.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFromDelegateArgument(DelegateArgument)

Initializes and returns a new InArgument<T> using the specified DelegateArgument.

System_CAPS_pubmethodSystem_CAPS_staticFromExpression(Activity<T>)

Initializes and returns a new InArgument<T> using the specified Activity<TResult>.

System_CAPS_pubmethodSystem_CAPS_staticFromValue(T)

Initializes and returns a new InArgument<T> using the specified value.

System_CAPS_pubmethodSystem_CAPS_staticFromVariable(Variable)

Initializes and returns a new InArgument<T> using the specified Variable.

System_CAPS_pubmethodGet(ActivityContext)

Gets the value of the InArgument<T> using the specified activity context.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLocation(ActivityContext)

Gets the Location for this Argument.(Inherited from Argument.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSet(ActivityContext, T)

Sets the value of the InArgument<T> using the specified value.

System_CAPS_pubmethodSet(ActivityContext, Object)

Sets the value of the argument using the specified activity context.(Inherited from Argument.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticImplicit(T to InArgument<T>)

Initializes and returns a new InArgument<T> using the specified value.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(Activity<T> to InArgument<T>)

Initializes and returns a new InArgument<T> using the specified Activity<TResult>.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(DelegateArgument to InArgument<T>)

Initializes and returns a new InArgument<T> using the specified DelegateArgument.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(Variable to InArgument<T>)

Initializes and returns a new InArgument<T> using the specified Variable.

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
Available since 4.0

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

Return to top
Show:
© 2016 Microsoft