InArgument<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A binding terminal that represents the flow of data into an activity.
generic <typename T>
public ref class InArgument sealed : System::Activities::InArgument
[System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.InArgumentConverter))]
[System.Windows.Markup.ContentProperty("Expression")]
public sealed class InArgument<T> : System.Activities.InArgument
[<System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.InArgumentConverter))>]
[<System.Windows.Markup.ContentProperty("Expression")>]
type InArgument<'T> = class
inherit InArgument
Public NotInheritable Class InArgument(Of T)
Inherits InArgument
Type Parameters
- T
The data type of the InArgument<T>.
- Inheritance
- Attributes
Examples
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);
Constructors
InArgument<T>() |
Initializes a new instance of the InArgument<T> class using default values. |
InArgument<T>(Activity<T>) |
Initializes a new instance of the InArgument<T> class using the specified Activity<TResult>. |
InArgument<T>(DelegateArgument) |
Initializes a new instance of the InArgument<T> class using the specified DelegateArgument. |
InArgument<T>(Expression<Func<ActivityContext,T>>) |
Initializes a new instance of the InArgument<T> class using the specified expression. |
InArgument<T>(T) |
Initializes a new instance of the InArgument<T> class using the specified value. |
InArgument<T>(Variable) |
Initializes a new instance of the InArgument<T> class using the specified Variable. |
Fields
ResultValue |
Represents the constant value of "Result", which corresponds to the name of the Result property of type OutArgument in the expression base class ActivityWithResult. (Inherited from Argument) |
Properties
ArgumentType |
Gets the data type for the data bound to this Argument. (Inherited from Argument) |
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) |
EvaluationOrder |
Gets or sets a zero-based value that specifies the order in which the argument is evaluated. (Inherited from Argument) |
Expression |
Gets an Activity<TResult> that represents the value of this InArgument<T>. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
FromDelegateArgument(DelegateArgument) |
Initializes and returns a new InArgument<T> using the specified DelegateArgument. |
FromExpression(Activity<T>) |
Initializes and returns a new InArgument<T> using the specified Activity<TResult>. |
FromValue(T) |
Initializes and returns a new InArgument<T> using the specified value. |
FromVariable(Variable) |
Initializes and returns a new InArgument<T> using the specified Variable. |
Get(ActivityContext) |
Gets the value of the InArgument<T> using the specified activity context. |
Get<T>(ActivityContext) |
Gets the value of the argument using the specified type and activity context. (Inherited from Argument) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetLocation(ActivityContext) |
Gets the Location for this Argument. (Inherited from Argument) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Set(ActivityContext, Object) |
Sets the value of the argument using the specified activity context. (Inherited from Argument) |
Set(ActivityContext, T) |
Sets the value of the InArgument<T> using the specified value. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Operators
Implicit(Activity<T> to InArgument<T>) |
Initializes and returns a new InArgument<T> using the specified Activity<TResult>. |
Implicit(DelegateArgument to InArgument<T>) |
Initializes and returns a new InArgument<T> using the specified DelegateArgument. |
Implicit(T to InArgument<T>) |
Initializes and returns a new InArgument<T> using the specified value. |
Implicit(Variable to InArgument<T>) |
Initializes and returns a new InArgument<T> using the specified Variable. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor