C# Класс NLog.GDC

Показать файл Открыть проект

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

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

Clears the content of the GDC.

Contains ( string item ) : bool

Checks whether the specified item exists in the Global Diagnostics Context.

Get ( string item ) : string

Gets the Global Diagnostics Context named item.

If the value isn't a string already, this call locks the LogFactory for reading the LoggingConfiguration.DefaultCultureInfo needed for converting to string.

Get ( string item, IFormatProvider formatProvider ) : string

Gets the Global Diagnostics Context item.

If formatProvider is null and the value isn't a string already, this call locks the LogFactory for reading the LoggingConfiguration.DefaultCultureInfo needed for converting to string.

GetObject ( string item ) : object

Gets the Global Diagnostics Context named item.

Remove ( string item ) : void

Removes the specified item from the Global Diagnostics Context.

Set ( string item, string value ) : void

Sets the Global Diagnostics Context item to the specified value.

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

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

Clears the content of the GDC.
public static Clear ( ) : void
Результат void

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

Checks whether the specified item exists in the Global Diagnostics Context.
public static Contains ( string item ) : bool
item string Item name.
Результат bool

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

Gets the Global Diagnostics Context named item.
If the value isn't a string already, this call locks the LogFactory for reading the LoggingConfiguration.DefaultCultureInfo needed for converting to string.
public static Get ( string item ) : string
item string Item name.
Результат string

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

Gets the Global Diagnostics Context item.
If formatProvider is null and the value isn't a string already, this call locks the LogFactory for reading the LoggingConfiguration.DefaultCultureInfo needed for converting to string.
public static Get ( string item, IFormatProvider formatProvider ) : string
item string Item name.
formatProvider IFormatProvider to use when converting the item's value to a string.
Результат string

GetObject() публичный статический Метод

Gets the Global Diagnostics Context named item.
public static GetObject ( string item ) : object
item string Item name.
Результат object

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

Removes the specified item from the Global Diagnostics Context.
public static Remove ( string item ) : void
item string Item name.
Результат void

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

Sets the Global Diagnostics Context item to the specified value.
public static Set ( string item, string value ) : void
item string Item name.
value string Item value.
Результат void