C# Класс log4net.Util.CompositeProperties

This class aggregates several PropertiesDictionary collections together.

Provides a dictionary style lookup over an ordered list of PropertiesDictionary collections.

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Add ( log4net.Util.ReadOnlyPropertiesDictionary properties ) : void

Add a Properties Dictionary to this composite collection

Properties dictionaries added first take precedence over dictionaries added later.

Flatten ( ) : log4net.Util.PropertiesDictionary

Flatten this composite collection into a single properties dictionary

Reduces the collection of ordered dictionaries to a single dictionary containing the resultant values for the keys.

this ( string key ) : object

Gets the value of a property

Looks up the value for the key specified. The PropertiesDictionary collections are searched in the order in which they were added to this collection. The value returned is the value held by the first collection that contains the specified key.

If none of the collections contain the specified key then null is returned.

Приватные методы

Метод Описание
CompositeProperties ( ) : System

Constructor

Initializes a new instance of the CompositeProperties class.

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

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

Add a Properties Dictionary to this composite collection

Properties dictionaries added first take precedence over dictionaries added later.

public Add ( log4net.Util.ReadOnlyPropertiesDictionary properties ) : void
properties log4net.Util.ReadOnlyPropertiesDictionary the properties to add
Результат void

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

Flatten this composite collection into a single properties dictionary

Reduces the collection of ordered dictionaries to a single dictionary containing the resultant values for the keys.

public Flatten ( ) : log4net.Util.PropertiesDictionary
Результат log4net.Util.PropertiesDictionary

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

Gets the value of a property

Looks up the value for the key specified. The PropertiesDictionary collections are searched in the order in which they were added to this collection. The value returned is the value held by the first collection that contains the specified key.

If none of the collections contain the specified key then null is returned.

public this ( string key ) : object
key string
Результат object