C# 클래스 BytesRoad.Diag.NSTraceListeners

Provides a thread-safe list of TraceListener objects.
The TraceListenerSet class provides the same set of functionality as TraceListenerCollection provides. The reason for creating this class is inpossibility of using TraceListenerCollection due to hidden constructor.
상속: IList, ICollection, IEnumerable
파일 보기 프로젝트 열기: NikolayIT/RatioMaster.NET 1 사용 예제들

Private Properties

프로퍼티 타입 설명
IList bool
IList int
IList void
IList void
NSTraceListeners System
this objectIList.System

공개 메소드들

메소드 설명
Add ( TraceListener listener ) : int

Adds a TraceListener to the list.

AddRange ( NSTraceListeners listeners ) : void

Adds the contents of another NSTraceListeners to the list.

AddRange ( TraceListener listeners ) : void

Adds an array of TraceListener objects to the list.

AddRange ( TraceListenerCollection listeners ) : void

Adds the contents of another TraceListenerCollection to the list.

Clear ( ) : void

Clears all the listeners from the list.

Contains ( TraceListener listener ) : bool

Checks whether the list contains the specified listener.

The Contains method can confirm the existence of a TraceListener before you perform further operations.

CopyTo ( Array array, int index ) : void

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

CopyTo ( TraceListener listeners, int index ) : void

Copies a section of the current NSTraceListeners list to the specified array at the specified index.

GetEnumerator ( ) : IEnumerator

Gets an enumerator for this list.

IndexOf ( TraceListener listener ) : int

Gets the index of the specified listener.

Insert ( int index, TraceListener listener ) : void

Inserts the listener at the specified index.

Remove ( TraceListener listener ) : void

Removes from the collection the specified TraceListener.

Remove ( string name ) : void

Removes from the collection the first TraceListener with the specified name.

RemoveAt ( int index ) : void

Removes from the collection the TraceListener at the specified index.

this ( int index ) : TraceListener

Gets or sets the TraceListener at the specified index.

Note that the index is zero-based.

this ( string name ) : TraceListener

Gets the first TraceListener in the list with the specified name.

Note that the Item property is case-sensitive when searching for names.

비공개 메소드들

메소드 설명
IList ( object val ) : bool

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IList ( object val ) : int

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IList ( int index, object val ) : void

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IList ( object val ) : void

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

NSTraceListeners ( ) : System
this ( int index ) : objectIList.System

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

메소드 상세

Add() 공개 메소드

Adds a TraceListener to the list.
public Add ( TraceListener listener ) : int
listener System.Diagnostics.TraceListener /// A /// TraceListener /// to add to the list. ///
리턴 int

AddRange() 공개 메소드

Adds the contents of another NSTraceListeners to the list.
public AddRange ( NSTraceListeners listeners ) : void
listeners NSTraceListeners /// Another /// NSTraceListeners /// whose contents are added to the list. ///
리턴 void

AddRange() 공개 메소드

Adds an array of TraceListener objects to the list.
public AddRange ( TraceListener listeners ) : void
listeners System.Diagnostics.TraceListener /// An array of /// TraceListener /// objects to add to the list. ///
리턴 void

AddRange() 공개 메소드

Adds the contents of another TraceListenerCollection to the list.
public AddRange ( TraceListenerCollection listeners ) : void
listeners System.Diagnostics.TraceListenerCollection /// Another /// TraceListenerCollection /// whose contents are added to the list. ///
리턴 void

Clear() 공개 메소드

Clears all the listeners from the list.
public Clear ( ) : void
리턴 void

Contains() 공개 메소드

Checks whether the list contains the specified listener.
The Contains method can confirm the existence of a TraceListener before you perform further operations.
public Contains ( TraceListener listener ) : bool
listener System.Diagnostics.TraceListener /// A TraceListener /// to find in the list. ///
리턴 bool

CopyTo() 공개 메소드

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
public CopyTo ( Array array, int index ) : void
array System.Array
index int
리턴 void

CopyTo() 공개 메소드

Copies a section of the current NSTraceListeners list to the specified array at the specified index.
public CopyTo ( TraceListener listeners, int index ) : void
listeners System.Diagnostics.TraceListener /// An array of type /// Array /// to copy the elements into. ///
index int /// The starting index number in the current list to copy from. ///
리턴 void

GetEnumerator() 공개 메소드

Gets an enumerator for this list.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

IndexOf() 공개 메소드

Gets the index of the specified listener.
public IndexOf ( TraceListener listener ) : int
listener System.Diagnostics.TraceListener /// A /// TraceListener /// to find in the list. ///
리턴 int

Insert() 공개 메소드

Inserts the listener at the specified index.
/// The index is not a valid index in the list. ///
public Insert ( int index, TraceListener listener ) : void
index int /// The zero-based index at which the new /// TraceListener. /// should be inserted. ///
listener System.Diagnostics.TraceListener /// A /// TraceListener /// to insert in the list. ///
리턴 void

Remove() 공개 메소드

Removes from the collection the specified TraceListener.
/// The listener does not exist in the list. ///
public Remove ( TraceListener listener ) : void
listener System.Diagnostics.TraceListener /// A /// TraceListener /// to remove from the list. ///
리턴 void

Remove() 공개 메소드

Removes from the collection the first TraceListener with the specified name.
/// A listener with the given name does not exist in the list. ///
public Remove ( string name ) : void
name string /// The case-sensitive name of the /// TraceListener /// to remove from the list. ///
리턴 void

RemoveAt() 공개 메소드

Removes from the collection the TraceListener at the specified index.
/// The index is not a valid index in the list. ///
public RemoveAt ( int index ) : void
index int /// The zero-based index of the /// TraceListener /// to remove from the list. ///
리턴 void

this() 공개 메소드

Gets or sets the TraceListener at the specified index.
Note that the index is zero-based.
public this ( int index ) : TraceListener
index int
리턴 System.Diagnostics.TraceListener

this() 공개 메소드

Gets the first TraceListener in the list with the specified name.
Note that the Item property is case-sensitive when searching for names.
public this ( string name ) : TraceListener
name string
리턴 System.Diagnostics.TraceListener