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
- System.​Collections.​Generic.​IDictionary`2 (Inherits: ICollection<​KeyValuePair<​string, object>>IEnumerable<​KeyValuePair<​string, object>>IEnumerable)
- System.​Collections.​Generic.​IReadOnlyDictionary`2 (Inherits: IEnumerable<​KeyValuePair<​string, object>>IEnumerableIReadOnlyCollection<​KeyValuePair<​string, object>>)
An <see cref="T:System.Collections.Generic.IDictionary`2" /> type for route values.
Properties
public
object
Item
public
System.​Collections.​Generic.​IEqualityComparer<​string>
Comparer
Gets the comparer for this dictionary.
Remarks This will always be a reference to <see cref="P:System.StringComparer.OrdinalIgnoreCase" />
public
int
Count
public
System.​Collections.​Generic.​ICollection<​string>
Keys
public
System.​Collections.​Generic.​ICollection<​object>
Values
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
bool
Remove​(string key)
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
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object