TemplatedCodeGenerator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
TemplatedCodeGenerator
- 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) |