IDirectiveProcessor Interface

Interface for a directive processor.

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.Interfaces.11.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.11.0.dll)

Syntax

'Declaration
Public Interface IDirectiveProcessor
public interface IDirectiveProcessor
public interface class IDirectiveProcessor
type IDirectiveProcessor =  interface end
public interface IDirectiveProcessor

The IDirectiveProcessor type exposes the following members.

Properties

  Name Description
Public property Errors Error collection for DirectiveProcessor to add errors/warnings to.
Public property RequiresProcessingRunIsHostSpecific Allow a directive processor to specify that it needs the run to be host-specific.

Top

Methods

  Name Description
Public method FinishProcessingRun Finishes a round of directive processing.
Public method GetClassCodeForProcessingRun Gets the code to contribute to the generated template processing class because of the most recent run.
Public method GetImportsForProcessingRun Gets any namespaces to import because of the most recent run.
Public method GetPostInitializationCodeForProcessingRun Gets the code to contribute to the body of the initialize method of the generated template processing class because of the most recent run. This code will run after the base class' Initialize method.
Public method GetPreInitializationCodeForProcessingRun Gets the code to contribute to the body of the initialize method of the generated template processing class because of the most recent run. This code will run before the base class' Initialize method.
Public method GetReferencesForProcessingRun Gets any references to pass to the compiler because of the most recent run.
Public method GetTemplateClassCustomAttributes Gets any custom attributes to include on the template class.
Public method Initialize Initializes the processor instance.
Public method IsDirectiveSupported Does this DirectiveProcessor support the given directive.
Public method ProcessDirective Processes a directive from a template file.
Public method SetProcessingRunIsHostSpecific Informs the directive processor whether the run is host-specific.
Public method StartProcessingRun Starts a round of directive processing.

Top

See Also

Reference

Microsoft.VisualStudio.TextTemplating Namespace