Прочетете на английски

Споделяне чрез


HostOutputProductionContext.AddOutput(String, Object) Method

Definition

Adds a host specific output

C#
public void AddOutput(string name, object value);

Parameters

name
String

The name of the output to be added.

value
Object

The output to be added.

Remarks

A host output has no defined use. It does not contribute to the final compilation in any way. Any outputs registered here are made available via the HostOutputs collection, and it is up the host to decide how to use them. A host may also disable these outputs altogether if they are not needed. The generator driver otherwise makes no guarantees about how the outputs are used, other than that they will be present if the host has requested they be produced.

Applies to

Продукт Версии
Roslyn 4.12.2, 4.13.0