Export (0) Print
Expand All

BaseCodeGeneratorWithSite Class

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

Namespace:  Microsoft.VisualStudio.TextTemplating.VSHost
Assembly:  Microsoft.VisualStudio.TextTemplating.VSHost.12.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.12.0.dll)

public abstract class BaseCodeGeneratorWithSite : BaseCodeGenerator, 

The BaseCodeGeneratorWithSite type exposes the following members.

Protected propertyDteGet the DTE object
Protected propertyErrorListGet the Vs ErrorList object
Protected propertyFileNamespacenamespace for the file. (Inherited from BaseCodeGenerator.)
Protected propertyGlobalServiceProviderProvides a wrapper on the global service provider for Visual Studio
Protected propertyInputFilePathfile-path for the input file. (Inherited from BaseCodeGenerator.)
Protected propertySiteServiceProviderGet 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>

Protected methodCreateExceptionMessage
Public methodDispose()Releases all resources used by this instance. (Inherited from BaseCodeGenerator.)
Protected methodDispose(Boolean) (Overrides BaseCodeGenerator.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalize (Inherited from BaseCodeGenerator.)
Public methodGenerate (Inherited from BaseCodeGenerator.)
Protected methodGenerateCode (Inherited from BaseCodeGenerator.)
Protected methodGeneratorErrorCallback (Inherited from BaseCodeGenerator.)
Public methodGetDefaultExtensiongets the default extension for this generator (Inherited from BaseCodeGenerator.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetService(Guid)
Protected methodGetService(Type)
Public methodGetSite
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetSite
Protected methodSetWaitCursorSet the wait cursor until the end of this generation
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft