Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDirectiveProcessor Interface

Visual Studio 2012

Interface for a directive processor.

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.Interfaces.11.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.11.0.dll)
'Declaration
Public Interface IDirectiveProcessor

The IDirectiveProcessor type exposes the following members.

  NameDescription
Public propertyErrorsError collection for DirectiveProcessor to add errors/warnings to.
Public propertyRequiresProcessingRunIsHostSpecificAllow a directive processor to specify that it needs the run to be host-specific.
Top
  NameDescription
Public methodFinishProcessingRunFinishes a round of directive processing.
Public methodGetClassCodeForProcessingRunGets the code to contribute to the generated template processing class because of the most recent run.
Public methodGetImportsForProcessingRunGets any namespaces to import because of the most recent run.
Public methodGetPostInitializationCodeForProcessingRunGets 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 methodGetPreInitializationCodeForProcessingRunGets 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 methodGetReferencesForProcessingRunGets any references to pass to the compiler because of the most recent run.
Public methodGetTemplateClassCustomAttributesGets any custom attributes to include on the template class.
Public methodInitializeInitializes the processor instance.
Public methodIsDirectiveSupportedDoes this DirectiveProcessor support the given directive.
Public methodProcessDirectiveProcesses a directive from a template file.
Public methodSetProcessingRunIsHostSpecificInforms the directive processor whether the run is host-specific.
Public methodStartProcessingRunStarts a round of directive processing.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.