RouteValueDictionary Class
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.
An IDictionary<TKey,TValue> type for route values.
public ref class RouteValueDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Object ^>
public class RouteValueDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IReadOnlyDictionary<string,object>
type RouteValueDictionary = class
interface IDictionary<string, obj>
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
interface IReadOnlyDictionary<string, obj>
interface IReadOnlyCollection<KeyValuePair<string, obj>>
type RouteValueDictionary = class
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
interface IDictionary<string, obj>
interface IReadOnlyCollection<KeyValuePair<string, obj>>
interface IReadOnlyDictionary<string, obj>
Public Class RouteValueDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IReadOnlyCollection(Of KeyValuePair(Of String, Object)), IReadOnlyDictionary(Of String, Object)
- Inheritance
-
RouteValueDictionary
- Implements
-
ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IReadOnlyCollection<KeyValuePair<String,Object>> IReadOnlyCollection<KeyValuePair<TKey,TValue>> IReadOnlyDictionary<String,Object> IEnumerable
Constructors
RouteValueDictionary() |
Creates an empty RouteValueDictionary. |
RouteValueDictionary(IEnumerable<KeyValuePair<String,Object>>) |
Creates a RouteValueDictionary initialized with the specified |
RouteValueDictionary(IEnumerable<KeyValuePair<String,String>>) |
Creates a RouteValueDictionary initialized with the specified |
RouteValueDictionary(Object) |
Creates a RouteValueDictionary initialized with the specified |
RouteValueDictionary(RouteValueDictionary) |
Creates a RouteValueDictionary initialized with the specified |
Properties
Comparer |
Gets the comparer for this dictionary. |
Count | Gets the number of elements contained in the ICollection<T>. |
Item[String] | Gets or sets the element with the specified key. |
Keys | Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>. |
Values | Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>. |
Methods
Add(String, Object) | Adds an element with the provided key and value to the IDictionary<TKey,TValue>. |
Clear() | Removes all items from the ICollection<T>. |
ContainsKey(String) | Determines whether the IDictionary<TKey,TValue> contains an element with the specified key. |
FromArray(KeyValuePair<String,Object>[]) |
Creates a new RouteValueDictionary from the provided array. The new instance will take ownership of the array, and may mutate it. |
GetEnumerator() | System.Object.GetEnumerator |
Remove(String, Object) |
Attempts to remove and return the value that has the specified key from the RouteValueDictionary. |
Remove(String) | Removes the element with the specified key from the IDictionary<TKey,TValue>. |
TryAdd(String, Object) |
Attempts to the add the provided |
TryGetValue(String, Object) | System.Object.TryGetValue(System.String,System.Object@) |
Explicit Interface Implementations
ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>) | Adds an item to the ICollection<T>. |
ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) | Determines whether the ICollection<T> contains a specific value. |
ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32) | Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. |
ICollection<KeyValuePair<String,Object>>.IsReadOnly | Gets a value indicating whether the ICollection<T> is read-only. |
ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>) | Removes the first occurrence of a specific object from the ICollection<T>. |
IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
IEnumerable<KeyValuePair<String,Object>>.GetEnumerator() | Returns an enumerator that iterates through the collection. |
IReadOnlyDictionary<String,Object>.Keys | |
IReadOnlyDictionary<String,Object>.Values |