BaseCodeGeneratorWithSite Class
This class exists to be co-created in a preprocessor build step.
System.Object
Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGenerator
Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGeneratorWithSite
Microsoft.VisualStudio.TextTemplating.VSHost.BaseTemplatedCodeGenerator
Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGenerator
Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGeneratorWithSite
Microsoft.VisualStudio.TextTemplating.VSHost.BaseTemplatedCodeGenerator
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll)
The BaseCodeGeneratorWithSite type exposes the following members.
| Name | Description | |
|---|---|---|
|
Dte | Get the DTE object |
|
ErrorList | Get the Vs ErrorList object |
|
FileNamespace | namespace for the file. (Inherited from BaseCodeGenerator.) |
|
GlobalServiceProvider | Provides a wrapper on the global service provider for Visual Studio |
|
InputFilePath | file-path for the input file. (Inherited from BaseCodeGenerator.) |
|
SiteServiceProvider | Get a wrapper on the containing project system's Service provider <remarks> This is a limited service provider that can only reliably provide VxDTE::SID_SVSProjectItem SID_SVSWebReferenceDynamicProperties IID_IVsHierarchy SID_SVsApplicationSettings To get the global provider, call GetSite on IVSHierarchy or use the GlobalServiceProvider property </remarks> |
| Name | Description | |
|---|---|---|
|
CreateExceptionMessage | Create a message to display to the user, given an exception. |
|
Dispose() | Releases all resources used by this instance. (Inherited from BaseCodeGenerator.) |
|
Dispose(Boolean) | (Overrides BaseCodeGenerator.Dispose(Boolean).) |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | (Inherited from BaseCodeGenerator.) |
|
Generate | (Inherited from BaseCodeGenerator.) |
|
GenerateCode | (Inherited from BaseCodeGenerator.) |
|
GeneratorErrorCallback | (Inherited from BaseCodeGenerator.) |
|
GetDefaultExtension | gets the default extension for this generator (Inherited from BaseCodeGenerator.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetService(Guid) | |
|
GetService(Type) | |
|
GetSite | |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
SetSite | |
|
SetWaitCursor | Set the wait cursor until the end of this generation |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
IVsSingleFileGenerator.DefaultExtension | (Inherited from BaseCodeGenerator.) |
|
IVsSingleFileGenerator.Generate | (Inherited from BaseCodeGenerator.) |