Compartir a través de


BaseTemplatedCodeGenerator Class

Definition

Text Templating Code Generator

public ref class BaseTemplatedCodeGenerator abstract : Microsoft::VisualStudio::TextTemplating::VSHost::BaseCodeGeneratorWithSite
[Windows::Foundation::Metadata::WebHostHidden]
public ref class BaseTemplatedCodeGenerator abstract : Microsoft::VisualStudio::TextTemplating::VSHost::BaseCodeGeneratorWithSite
[Windows::Foundation::Metadata::WebHostHidden]
class BaseTemplatedCodeGenerator abstract : Microsoft::VisualStudio::TextTemplating::VSHost::BaseCodeGeneratorWithSite
public abstract class BaseTemplatedCodeGenerator : Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGeneratorWithSite
type BaseTemplatedCodeGenerator = class
    inherit BaseCodeGeneratorWithSite
Public MustInherit Class BaseTemplatedCodeGenerator
Inherits BaseCodeGeneratorWithSite
Inheritance
Derived

Remarks

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

Constructors

BaseTemplatedCodeGenerator()

Fields

callback

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

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)

Generate the final code from the input template and its parameters

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

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