Language

KeyValueRouteBuilderBase<TBuilder>.WithValue Method

Definition

Overloads

Name Description
WithValue(String)

Match a specific task data value.

WithValue(Regex)

Match a specific task data value pattern.

WithValue(String)

Match a specific task data value.

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

Parameters

value
String

The key value to be matched.

Returns

TBuilder

The current instance of the builder, allowing for method chaining.

Exceptions

Command has already been defined for this builder instance.

Remarks

The default key name is "task" unless changed with WithKey(String)

Applies to

WithValue(Regex)

Match a specific task data value pattern.

public TBuilder WithValue(System.Text.RegularExpressions.Regex valuePattern);
member this.WithValue : System.Text.RegularExpressions.Regex -> 'Builder
Public Function WithValue (valuePattern As Regex) As TBuilder

Parameters

valuePattern
Regex

The key value matching the Regex pattern.

Returns

TBuilder

The current instance of the builder, allowing for method chaining.

Exceptions

Key has already been defined for this builder instance.

Remarks

The default key name is "task" unless changed with WithKey(String)

Applies to