Compartir a través de


DirectiveProcessor Class

Definition

Base class for a concrete DirectiveProcessor

public ref class DirectiveProcessor abstract : Microsoft::VisualStudio::TextTemplating::IDirectiveProcessor
[Windows::Foundation::Metadata::WebHostHidden]
public ref class DirectiveProcessor abstract : Microsoft::VisualStudio::TextTemplating::IDirectiveProcessor
[Windows::Foundation::Metadata::WebHostHidden]
class DirectiveProcessor abstract : Microsoft::VisualStudio::TextTemplating::IDirectiveProcessor
public abstract class DirectiveProcessor : Microsoft.VisualStudio.TextTemplating.IDirectiveProcessor
type DirectiveProcessor = class
    interface IDirectiveProcessor
Public MustInherit Class DirectiveProcessor
Implements IDirectiveProcessor
Inheritance
DirectiveProcessor
Derived
Implements

Remarks

A singleton instance of any of these classes that is required will be held by the Engine. This class implements a state machine with the Get... methods only valid after a Start...Finish pair.

Constructors

DirectiveProcessor()

Properties

Errors

Error collection for DirectiveProcessor to add Errors/Warnings to.

Methods

FinishProcessingRun()

Finish a round of directive processing

GetClassCodeForProcessingRun()

Get the code to contribute to the generated template processing class as a consequence of the most recent run.

GetImportsForProcessingRun()

Get any namespaces to import as a consequence of the most recent run.

GetPostInitializationCodeForProcessingRun()

Get the code to contribute to the body of the initialize method of the generated template processing class as a consequence of the most recent run. This code will run after the base class' Initialize method

GetPreInitializationCodeForProcessingRun()

Get the code to contribute to the body of the initialize method of the generated template processing class as a consequence of the most recent run. This code will run before the base class' Initialize method

GetReferencesForProcessingRun()

Get any references to pass to the compiler as a consequence of the most recent run.

GetTemplateClassCustomAttributes()

Get any custom attributes to place on the template class.

Initialize(ITextTemplatingEngineHost)

Initialize the processor instance

IsDirectiveSupported(String)

Does this DirectiveProcessor support the given directive

ProcessDirective(String, IDictionary<String,String>)

Process a directive from a template file

StartProcessingRun(CodeDomProvider, String, CompilerErrorCollection)

Begin a round of directive processing

Explicit Interface Implementations

IDirectiveProcessor.Errors
IDirectiveProcessor.RequiresProcessingRunIsHostSpecific
IDirectiveProcessor.SetProcessingRunIsHostSpecific(Boolean)

Applies to