Freigeben über


IncrementalGeneratorInitializationContext.RegisterSourceOutput Methode

Definition

Überlädt

Name Beschreibung
RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>)

Registriert einen Ausgabeknoten, der Quellcode erzeugt, der der Kompilierung hinzugefügt werden soll. Die bereitgestellte Aktion wird immer dann mit dem Wert des Anbieters aufgerufen, wenn sie geändert wird.

RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>)

Registriert einen Ausgabeknoten, der Quellcode erzeugt, der der Kompilierung hinzugefügt werden soll. Die bereitgestellte Aktion wird einmal für jeden Wert des Anbieters aufgerufen, wenn sie sich ändern.

RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>)

Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs

Registriert einen Ausgabeknoten, der Quellcode erzeugt, der der Kompilierung hinzugefügt werden soll. Die bereitgestellte Aktion wird immer dann mit dem Wert des Anbieters aufgerufen, wenn sie geändert wird.

public void RegisterSourceOutput<TSource>(Microsoft.CodeAnalysis.IncrementalValueProvider<TSource> source, Action<Microsoft.CodeAnalysis.SourceProductionContext,TSource> action);
member this.RegisterSourceOutput : Microsoft.CodeAnalysis.IncrementalValueProvider<'Source> * Action<Microsoft.CodeAnalysis.SourceProductionContext, 'Source> -> unit
Public Sub RegisterSourceOutput(Of TSource) (source As IncrementalValueProvider(Of TSource), action As Action(Of SourceProductionContext, TSource))

Typparameter

TSource

Der Typ des vom Quellanbieter bereitgestellten Werts

Parameter

source
IncrementalValueProvider<TSource>

Ein IncrementalValueProvider<TValue> Wert, der den Eingabewert bereitstellt

action
Action<SourceProductionContext,TSource>

Eine Aktion, die einen SourceProductionContext und den Eingabewert empfängt und Quelldateien oder Berichtsdiagnosen hinzufügen kann

Gilt für:

RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>)

Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs
Quelle:
IncrementalContexts.cs

Registriert einen Ausgabeknoten, der Quellcode erzeugt, der der Kompilierung hinzugefügt werden soll. Die bereitgestellte Aktion wird einmal für jeden Wert des Anbieters aufgerufen, wenn sie sich ändern.

public void RegisterSourceOutput<TSource>(Microsoft.CodeAnalysis.IncrementalValuesProvider<TSource> source, Action<Microsoft.CodeAnalysis.SourceProductionContext,TSource> action);
member this.RegisterSourceOutput : Microsoft.CodeAnalysis.IncrementalValuesProvider<'Source> * Action<Microsoft.CodeAnalysis.SourceProductionContext, 'Source> -> unit
Public Sub RegisterSourceOutput(Of TSource) (source As IncrementalValuesProvider(Of TSource), action As Action(Of SourceProductionContext, TSource))

Typparameter

TSource

Der Typ der einzelnen Werte, die vom Quellanbieter bereitgestellt werden

Parameter

source
IncrementalValuesProvider<TSource>

Ein IncrementalValuesProvider<TValues> Wert, der Eingabewerte bereitstellt

action
Action<SourceProductionContext,TSource>

Eine Aktion, die einen SourceProductionContext und einen Eingabewert empfängt und Quelldateien oder Berichtsdiagnosen hinzufügen kann

Gilt für: