Provides a string-to-stringvalue map.
More...
|
|
delegate void | ChangedDelegate (object sender, StringValueMapChangedEventArgs args) |
| | delegate raised when this collection changes
|
| | StringValueMap (IDictionary< string, StringValues > store) |
| | Create a string-value map around the provided store.
|
|
| StringValueMap () |
| | Create a blank string-value map.
|
| | StringValueMap (IEqualityComparer< string > equalityComparer) |
| | Create a blank string-value map with the provided equality comparer for keys.
|
| IEnumerator< KeyValuePair< string, StringValues > > | GetEnumerator () |
| | Get an enumerator for the items in the store.
|
| bool | ContainsKey (string key) |
| | Returns true if the key is contained in the store.
|
| bool | TryGetValue (string key, out StringValues value) |
| | Attempts to get the value associated with the provided key.
|
| void | Add (KeyValuePair< string, StringValues > item) |
| | Adds a key-value-pair to the store.
|
|
void | Clear () |
| | Clears the store.
|
| bool | Contains (KeyValuePair< string, StringValues > item) |
| | Tests if the key-value-pair is in the store.
|
| void | CopyTo (KeyValuePair< string, StringValues >[] array, int arrayIndex) |
| | Copies the contents to the provided array.
|
| bool | Remove (KeyValuePair< string, StringValues > item) |
| | Removes an item from the store.
|
| void | Add (string key, StringValues value) |
| | Adds an item to the store.
|
| bool | Remove (string key) |
| | Removes the item associated with the provided key.
|
|
|
IDictionary< string, StringValues > | Store [get, set] |
| | The store for the values.
|
|
ICollection< StringValues > | Values [get] |
| | Returns all known values.
|
|
bool | IsReadOnly [get] |
| | Returns read-only status of the store.
|
|
int | Count [get] |
| | Returns the count of the store.
|
|
ICollection< string > | Keys [get] |
| | Returns all keys in the store.
|
| StringValues | this[string key] [get, set] |
| | Indexes into the store.
|
| StringValues | this[T key] [get, set] |
| | Indexes into the store.
|
Provides a string-to-stringvalue map.
◆ StringValueMap() [1/2]
| PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.StringValueMap |
( |
IDictionary< string, StringValues > | store | ) |
|
Create a string-value map around the provided store.
- Parameters
-
◆ StringValueMap() [2/2]
| PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.StringValueMap |
( |
IEqualityComparer< string > | equalityComparer | ) |
|
Create a blank string-value map with the provided equality comparer for keys.
- Parameters
-
◆ Add() [1/2]
| void PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.Add |
( |
KeyValuePair< string, StringValues > | item | ) |
|
Adds a key-value-pair to the store.
- Parameters
-
◆ Add() [2/2]
| void PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.Add |
( |
string | key, |
|
|
StringValues | value ) |
Adds an item to the store.
- Parameters
-
◆ Contains()
| bool PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.Contains |
( |
KeyValuePair< string, StringValues > | item | ) |
|
Tests if the key-value-pair is in the store.
- Parameters
-
- Returns
◆ ContainsKey()
| bool PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.ContainsKey |
( |
string | key | ) |
|
Returns true if the key is contained in the store.
- Parameters
-
- Returns
◆ CopyTo()
| void PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.CopyTo |
( |
KeyValuePair< string, StringValues >[] | array, |
|
|
int | arrayIndex ) |
Copies the contents to the provided array.
- Parameters
-
◆ GetEnumerator()
| IEnumerator< KeyValuePair< string, StringValues > > PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.GetEnumerator |
( |
| ) |
|
Get an enumerator for the items in the store.
- Returns
◆ Remove() [1/2]
| bool PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.Remove |
( |
KeyValuePair< string, StringValues > | item | ) |
|
Removes an item from the store.
- Parameters
-
- Returns
◆ Remove() [2/2]
| bool PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.Remove |
( |
string | key | ) |
|
Removes the item associated with the provided key.
- Parameters
-
- Returns
◆ TryGetValue()
| bool PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.TryGetValue |
( |
string | key, |
|
|
out StringValues | value ) |
Attempts to get the value associated with the provided key.
- Parameters
-
- Returns
◆ this[string key]
| StringValues PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap.this[string key] |
|
getset |
Indexes into the store.
- Parameters
-
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/StringValueMap.cs