다음을 통해 공유


TemplatedCodeGenerator Class

Definition

Text Templating Code Generator

public ref class TemplatedCodeGenerator : Microsoft::VisualStudio::TextTemplating::VSHost::BaseTemplatedCodeGenerator
[Windows::Foundation::Metadata::WebHostHidden]
class TemplatedCodeGenerator : Microsoft::VisualStudio::TextTemplating::VSHost::BaseTemplatedCodeGenerator
[System.Runtime.InteropServices.Guid("B9C665D2-0451-4ae2-A38C-443B85D634F2")]
public class TemplatedCodeGenerator : Microsoft.VisualStudio.TextTemplating.VSHost.BaseTemplatedCodeGenerator
[<System.Runtime.InteropServices.Guid("B9C665D2-0451-4ae2-A38C-443B85D634F2")>]
type TemplatedCodeGenerator = class
    inherit BaseTemplatedCodeGenerator
Public Class TemplatedCodeGenerator
Inherits BaseTemplatedCodeGenerator
Inheritance
Attributes

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

TemplatedCodeGenerator()

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

(Inherited from BaseTemplatedCodeGenerator)
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