Compartilhar via


ProjectCollection.RegisterLoggers(IEnumerable<ILogger>) Method

Definition

Adds some loggers to the collection of loggers used for builds of projects in this collection. If any logger object is already in the collection, does nothing for that logger. May be null.

public:
 void RegisterLoggers(System::Collections::Generic::IEnumerable<Microsoft::Build::Framework::ILogger ^> ^ loggers);
public void RegisterLoggers (System.Collections.Generic.IEnumerable<Microsoft.Build.Framework.ILogger> loggers);
member this.RegisterLoggers : seq<Microsoft.Build.Framework.ILogger> -> unit
Public Sub RegisterLoggers (loggers As IEnumerable(Of ILogger))

Parameters

loggers
IEnumerable<ILogger>

The loggers to be added. May be null.

Remarks

Skips any logger objects that are already in the collection.

Applies to