Class ItemsFunctions
Items collections functions.
public static class ItemsFunctions
- Inheritance
-
objectItemsFunctions
Methods
Add(IThreadContextItems, string, object, bool)
Add item.
public static void Add(IThreadContextItems items, string key, object value, bool caseSensitive)
Parameters
itemsIThreadContextItemsItems collection
keystringKey to add
valueobjectValue to add
caseSensitiveboolIf true, the key is case sensitive
Add(IDictionary, string, object, bool)
Add item.
public static void Add(IDictionary items, string key, object value, bool caseSensitive)
Parameters
itemsIDictionaryItems collection
keystringKey to add
valueobjectValue to add
caseSensitiveboolIf true, the key is case sensitive
Clear(IThreadContextItems, string)
Remove items which start with selected name.
[Obsolete("Method was not intended for public use and will be removed in the next version.")]
public static void Clear(IThreadContextItems items, string startsWith)
Parameters
itemsIThreadContextItemsItems collection
startsWithstringStarting string of the objects to be removed
Clear(IDictionary, string)
Remove items which start with selected name.
[Obsolete("Method was not intended for public use and will be removed in the next version.")]
public static void Clear(IDictionary items, string startsWith)
Parameters
itemsIDictionaryItems collection
startsWithstringStarting string of the objects to be removed
Contains(IThreadContextItems, string, bool)
Check if stock contain item.
public static bool Contains(IThreadContextItems items, string key, bool caseSensitive)
Parameters
itemsIThreadContextItemsItems collection
keystringObject key
caseSensitiveboolIf true, the key is case sensitive
Returns
- bool
Contains(IDictionary, string, bool)
Check if stock contain item.
public static bool Contains(IDictionary items, string key, bool caseSensitive)
Parameters
itemsIDictionaryItems collection
keystringObject key
caseSensitiveboolIf true, the key is case sensitive
Returns
- bool
GetItem(IThreadContextItems, string, bool)
Returns object which matches by key.
public static object GetItem(IThreadContextItems items, string key, bool caseSensitive)
Parameters
itemsIThreadContextItemsItems collection
keystringObject key
caseSensitiveboolIf true, the key is case sensitive
Returns
- object
GetItem(IDictionary, string, bool)
Returns object which matches by key.
public static object GetItem(IDictionary items, string key, bool caseSensitive)
Parameters
itemsIDictionaryItems collection
keystringObject key
caseSensitiveboolIf true, the key is case sensitive
Returns
- object
Remove(IThreadContextItems, string, bool)
Remove item.
public static bool Remove(IThreadContextItems items, string key, bool caseSensitive)
Parameters
itemsIThreadContextItemsItems collection
keystringObject key
caseSensitiveboolIf true, the key is case sensitive
Returns
- bool
Remove(IDictionary, string, bool)
Remove item.
public static void Remove(IDictionary items, string key, bool caseSensitive)
Parameters
itemsIDictionaryItems collection
keystringObject key
caseSensitiveboolIf true, the key is case sensitive