This topic has not yet been rated - Rate this topic

BaseCodeGeneratorWithSite Class

This class exists to be co-created in a preprocessor build step.

Namespace:  Microsoft.VisualStudio.TextTemplating.VSHost
Assembly:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll)
public abstract class BaseCodeGeneratorWithSite : BaseCodeGenerator, 
	IObjectWithSite

The BaseCodeGeneratorWithSite type exposes the following members.

  Name Description
Protected property Dte Get the DTE object
Protected property ErrorList Get the Vs ErrorList object
Protected property FileNamespace namespace for the file. (Inherited from BaseCodeGenerator.)
Protected property GlobalServiceProvider Provides a wrapper on the global service provider for Visual Studio
Protected property InputFilePath file-path for the input file. (Inherited from BaseCodeGenerator.)
Protected property 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>
Top
  Name Description
Protected method CreateExceptionMessage Create a message to display to the user, given an exception.
Public method Dispose() Releases all resources used by this instance. (Inherited from BaseCodeGenerator.)
Protected method Dispose(Boolean) (Overrides BaseCodeGenerator.Dispose(Boolean).)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize (Inherited from BaseCodeGenerator.)
Public method Generate (Inherited from BaseCodeGenerator.)
Protected method GenerateCode (Inherited from BaseCodeGenerator.)
Protected method GeneratorErrorCallback (Inherited from BaseCodeGenerator.)
Public method GetDefaultExtension gets the default extension for this generator (Inherited from BaseCodeGenerator.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetService(Guid)
Protected method GetService(Type)
Public method GetSite
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetSite
Protected method SetWaitCursor Set the wait cursor until the end of this generation
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Advertisement