Partilhar via


TemplatedPreprocessor Class

Definition

Text Templating Preprocessor

public ref class TemplatedPreprocessor : Microsoft::VisualStudio::TextTemplating::VSHost::BaseTemplatedCodeGenerator
[Windows::Foundation::Metadata::WebHostHidden]
class TemplatedPreprocessor : Microsoft::VisualStudio::TextTemplating::VSHost::BaseTemplatedCodeGenerator
[System.Runtime.InteropServices.Guid("F56DB4B6-C280-40f1-855D-5DA0ED7BD270")]
public class TemplatedPreprocessor : Microsoft.VisualStudio.TextTemplating.VSHost.BaseTemplatedCodeGenerator
[<System.Runtime.InteropServices.Guid("F56DB4B6-C280-40f1-855D-5DA0ED7BD270")>]
type TemplatedPreprocessor = class
    inherit BaseTemplatedCodeGenerator
Public Class TemplatedPreprocessor
Inherits BaseTemplatedCodeGenerator
Inheritance
Attributes

Remarks

Parses a file template to produce the code class needed to generate the output of the template. Only a single generator is needed for any style of template as the custom code is handled with directive providers.

Constructors

TemplatedPreprocessor()

Fields

callback (Inherited from BaseTemplatedCodeGenerator)

Properties

Dte

Get the DTE object

(Inherited from BaseCodeGeneratorWithSite)
ErrorList

Get the Vs ErrorList object

(Inherited from BaseCodeGeneratorWithSite)
FileNamespace

namespace for the file.

(Inherited from BaseCodeGenerator)
GlobalServiceProvider

Provides a wrapper on the global service provider for Visual Studio

(Inherited from BaseCodeGeneratorWithSite)
InputFilePath

file-path for the input file.

(Inherited from BaseCodeGenerator)
SiteServiceProvider

Get a wrapper on the containing project system's Service provider

(Inherited from BaseCodeGeneratorWithSite)
TextTemplating

Get the TextTemplating service from Visual Studio

(Inherited from BaseTemplatedCodeGenerator)

Methods

CreateExceptionMessage(Exception)

method to create an exception message given an exception

(Inherited from BaseCodeGeneratorWithSite)
Dispose() (Inherited from BaseCodeGenerator)
Dispose(Boolean) (Inherited from BaseCodeGeneratorWithSite)
Generate(String, String, String, IntPtr, Int32, IVsGeneratorProgress) (Inherited from BaseCodeGenerator)
GenerateCode(String, String)
GeneratorErrorCallback(Boolean, Int32, String, Int32, Int32)

method that will communicate an error via the shell callback mechanism.

(Inherited from BaseCodeGenerator)
GetDefaultExtension()

Get the extension of the file that should be created

(Inherited from BaseTemplatedCodeGenerator)
GetService(Guid)

method to get a service by its GUID

(Inherited from BaseCodeGeneratorWithSite)
GetService(Type)

Method to get a service by its Type

(Inherited from BaseCodeGeneratorWithSite)
GetSite(Guid, IntPtr)

GetSite method of IOleObjectWithSite

(Inherited from BaseCodeGeneratorWithSite)
ProcessTemplate(String, String, ITextTemplating, IVsHierarchy)

Do the actual template processing that forms the core of this generator

SetSite(Object)

SetSite method of IOleObjectWithSite

(Inherited from BaseCodeGeneratorWithSite)
SetWaitCursor()

Set the wait cursor until the end of this generation

(Inherited from BaseCodeGeneratorWithSite)

Explicit Interface Implementations

IVsSingleFileGenerator.DefaultExtension(String) (Inherited from BaseCodeGenerator)
IVsSingleFileGenerator.Generate(String, String, String, IntPtr[], UInt32, IVsGeneratorProgress) (Inherited from BaseCodeGenerator)

Applies to