KeyValueRouteBuilderBase<TBuilder>.WithValue Method
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.
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
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
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)