Dela via


RouteValueDictionary Constructors

Definition

Overloads

RouteValueDictionary()

Creates an empty RouteValueDictionary.

RouteValueDictionary(RouteValueDictionary)

Creates a RouteValueDictionary initialized with the specified dictionary.

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

Creates a RouteValueDictionary initialized with the specified values.

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

Creates a RouteValueDictionary initialized with the specified values.

RouteValueDictionary(Object)

Creates a RouteValueDictionary initialized with the specified values.

RouteValueDictionary()

Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs

Creates an empty RouteValueDictionary.

public:
 RouteValueDictionary();
public RouteValueDictionary ();
Public Sub New ()

Applies to

RouteValueDictionary(RouteValueDictionary)

Source:
RouteValueDictionary.cs

Creates a RouteValueDictionary initialized with the specified dictionary.

public RouteValueDictionary (Microsoft.AspNetCore.Routing.RouteValueDictionary? dictionary);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (dictionary As RouteValueDictionary)

Parameters

dictionary
RouteValueDictionary

A RouteValueDictionary to initialize the dictionary.

Applies to

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

Source:
RouteValueDictionary.cs

Creates a RouteValueDictionary initialized with the specified values.

public RouteValueDictionary (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? values);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : seq<System.Collections.Generic.KeyValuePair<string, obj>> -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (values As IEnumerable(Of KeyValuePair(Of String, Object)))

Parameters

values
IEnumerable<KeyValuePair<String,Object>>

A sequence of values to add to the dictionary..

Applies to

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

Source:
RouteValueDictionary.cs

Creates a RouteValueDictionary initialized with the specified values.

public RouteValueDictionary (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>>? values);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : seq<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (values As IEnumerable(Of KeyValuePair(Of String, String)))

Parameters

values
IEnumerable<KeyValuePair<String,String>>

A sequence of values to add to the dictionary..

Applies to

RouteValueDictionary(Object)

Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs
Source:
RouteValueDictionary.cs

Creates a RouteValueDictionary initialized with the specified values.

public:
 RouteValueDictionary(System::Object ^ values);
public RouteValueDictionary (object values);
public RouteValueDictionary (object? values);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : obj -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (values As Object)

Parameters

values
Object

An object to initialize the dictionary. The value can be of type IDictionary<TKey,TValue> or IReadOnlyDictionary<TKey,TValue> or an object with public properties as key-value pairs.

Remarks

If the value is a dictionary or other IEnumerable<T> of KeyValuePair<TKey,TValue>, then its entries are copied. Otherwise the object is interpreted as a set of key-value pairs where the property names are keys, and property values are the values, and copied into the dictionary. Only public instance non-index properties are considered.

Applies to