C# Класс Common.Logging.Simple.NoOpVariablesContext

A null-functionality implementation of IVariablesContext
Наследование: IVariablesContext
Показать файл Открыть проект

Открытые методы

Метод Описание
Clear ( ) : void

Clears the context variables

Contains ( string key ) : bool

Checks if a variable is set within the context

Get ( string key ) : object

Gets the value of a variable within the context

Remove ( string key ) : void

Removes a variable from the context by key

Set ( string key, object value ) : void

Sets the value of a new or existing variable within the context

Описание методов

Clear() публичный Метод

Clears the context variables
public Clear ( ) : void
Результат void

Contains() публичный Метод

Checks if a variable is set within the context
public Contains ( string key ) : bool
key string The key of the variable to check for
Результат bool

Get() публичный Метод

Gets the value of a variable within the context
public Get ( string key ) : object
key string The key of the variable to get
Результат object

Remove() публичный Метод

Removes a variable from the context by key
public Remove ( string key ) : void
key string The key of the variable to remove
Результат void

Set() публичный Метод

Sets the value of a new or existing variable within the context
public Set ( string key, object value ) : void
key string The key of the variable that is to be added
value object The value to add
Результат void