Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Routing.​RouteValueDictionary

Assembly: Microsoft.AspNetCore.Http.Abstractions

Inheritance: object → RouteValueDictionary

Implemented Interfaces

An <see cref="T:System.Collections.Generic.IDictionary`2" /> type for route values.

Properties

public object
Item
Gets the comparer for this dictionary.
Remarks This will always be a reference to <see cref="P:System.StringComparer.OrdinalIgnoreCase" />
public int
Count

Methods

public static RouteValueDictionary
FromArray​(System.​Collections.​Generic.​KeyValuePair[] items)
Creates a new <see cref="T:Microsoft.AspNetCore.Routing.RouteValueDictionary" /> from the provided array. The new instance will take ownership of the array, and may mutate it.
Returns A new <see cref="T:Microsoft.AspNetCore.Routing.RouteValueDictionary" /> .
items The items array.
public void
Add​(string key, object value)
public void
Clear​()
public bool
ContainsKey​(string key)
public Enumerator
GetEnumerator​()
public bool
Remove​(string key)
public bool
Remove​(string key, System.​Object&? value)
public bool
TryAdd​(string key, object value)
Attempts to the add the provided <paramref name="key" /> and <paramref name="value" /> to the dictionary.
Returns Returns <c>true</c> if the value was added. Returns <c>false</c> if the key was already present.
key The key.
value The value.
public bool
TryGetValue​(string key, System.​Object&? value)
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object