简体   繁体   中英

Optional Argument for Custom Activities in Workflow Foundation

Is there a way to have an optional argument for a custom activity within Workflow Designer in C#, .NET environment. I know that for Required Arguments here is the syntax:

[RequiredArgument]
[Description("The status to query.")]
public InArgument<StatusValues> Status { get; set; }

But I am wondering how do I define an input argument that could be optional?

Thank you for your help.

Actually, the default for all arguments is to be optional. So, without the [RequiredArgument] attribute, your argument is optional without anything else you must do.

(I hope I did not miss your point, as this seems to be so obvious...?)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM