C# 클래스 log4net.Util.CompositeProperties

This class aggregates several PropertiesDictionary collections together.

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

파일 보기 프로젝트 열기: nithinphilips/SMOz 1 사용 예제들

공개 메소드들

메소드 설명
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