Language

KeyValueRouteBuilderBase<TBuilder>.WithKey(String) Method

Definition

Sets the name of the key property in the incoming activity's value payload used for route matching. Defaults to "task".

public TBuilder WithKey(string keyName);
member this.WithKey : string -> 'Builder
Public Function WithKey (keyName As String) As TBuilder

Parameters

keyName
String

A filter string that specifies the key data to include. If the value is null or consists only of white space, a default filter is applied.

Returns

TBuilder

The current instance of the builder, enabling method chaining.

Applies to