RouteValueDictionary Třída

Definice

Typ IDictionary<TKey,TValue> pro hodnoty tras.

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)
Dědičnost
RouteValueDictionary
Implementuje

Konstruktory

RouteValueDictionary()

Vytvoří prázdnou RouteValueDictionary.

RouteValueDictionary(IEnumerable<KeyValuePair<String,Object>>)

RouteValueDictionary Vytvoří inicializaci se zadaným valuesparametrem .

RouteValueDictionary(IEnumerable<KeyValuePair<String,String>>)

RouteValueDictionary Vytvoří inicializaci se zadaným valuesparametrem .

RouteValueDictionary(Object)

RouteValueDictionary Vytvoří inicializaci se zadaným valuesparametrem .

RouteValueDictionary(RouteValueDictionary)

RouteValueDictionary Vytvoří inicializaci se zadaným dictionaryparametrem .

Vlastnosti

Comparer

Získá porovnávač pro tento slovník.

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>.

Metody

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>[])

Vytvoří novou RouteValueDictionary z poskytnutého pole. Nová instance převezme vlastnictví pole a může ji ztlumit.

GetEnumerator() System.Object.GetEnumerator
Remove(String)

Removes the element with the specified key from the IDictionary<TKey,TValue>.

Remove(String, Object)

Pokusí se odebrat a vrátit hodnotu, která má zadaný klíč z RouteValueDictionary.

TryAdd(String, Object)

Pokusí se přidat zadaný key slovník a value do slovníku.

TryGetValue(String, Object) System.Object.TryGetValue(System.String,System.Object@)

Explicitní implementace rozhraní

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

Platí pro