Table of Contents

Class ItemsFunctions

Namespace
CMS.Base
Assembly
CMS.Base.dll

Items collections functions.

public static class ItemsFunctions
Inheritance
object
ItemsFunctions

Methods

Add(IThreadContextItems, string, object, bool)

Add item.

public static void Add(IThreadContextItems items, string key, object value, bool caseSensitive)

Parameters

items IThreadContextItems

Items collection

key string

Key to add

value object

Value to add

caseSensitive bool

If 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

items IDictionary

Items collection

key string

Key to add

value object

Value to add

caseSensitive bool

If true, the key is case sensitive

Contains(IThreadContextItems, string, bool)

Check if stock contain item.

public static bool Contains(IThreadContextItems items, string key, bool caseSensitive)

Parameters

items IThreadContextItems

Items collection

key string

Object key

caseSensitive bool

If 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

items IDictionary

Items collection

key string

Object key

caseSensitive bool

If 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

items IThreadContextItems

Items collection

key string

Object key

caseSensitive bool

If 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

items IDictionary

Items collection

key string

Object key

caseSensitive bool

If 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

items IThreadContextItems

Items collection

key string

Object key

caseSensitive bool

If 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

items IDictionary

Items collection

key string

Object key

caseSensitive bool

If true, the key is case sensitive