ProjectCollection.RegisterLogger(ILogger) 方法

定义

向用于此集合中的项目生成的记录器集合添加给定的记录器。Adds the given logger to the collection of loggers used for builds of projects in this collection.

public:
 void RegisterLogger(Microsoft::Build::Framework::ILogger ^ logger);
public void RegisterLogger (Microsoft.Build.Framework.ILogger logger);
member this.RegisterLogger : Microsoft.Build.Framework.ILogger -> unit
Public Sub RegisterLogger (logger As ILogger)

参数

logger
ILogger

要添加的记录器。The logger to add.

注解

如果记录器对象已存在于集合中,则不执行任何操作。If the logger object is already in the collection, does nothing.

适用于