Share via


MessageHandlerAttribute.Yield Property

Definition

Gets or sets the types that this handler may yield as workflow outputs.

public Type[]? Yield { get; set; }
member this.Yield : Type[] with get, set
Public Property Yield As Type()

Property Value

Type[]

Remarks

If not specified, the return type (if any) is used as the default yield type. Use this property to explicitly declare additional output types or to override the default inference from the return type.

Applies to