Sdílet prostřednictvím


BaseCodeGeneratorWithSite Class

Definition

This class exists to be cocreated a in a preprocessor build step.

public ref class BaseCodeGeneratorWithSite abstract : Microsoft::VisualStudio::TextTemplating::VSHost::BaseCodeGenerator, Microsoft::VisualStudio::OLE::Interop::IObjectWithSite
[Windows::Foundation::Metadata::WebHostHidden]
public ref class BaseCodeGeneratorWithSite abstract : Microsoft::VisualStudio::TextTemplating::VSHost::BaseCodeGenerator, Microsoft::VisualStudio::OLE::Interop::IObjectWithSite
[Windows::Foundation::Metadata::WebHostHidden]
class BaseCodeGeneratorWithSite abstract : Microsoft::VisualStudio::TextTemplating::VSHost::BaseCodeGenerator, Microsoft::VisualStudio::OLE::Interop::IObjectWithSite
public abstract class BaseCodeGeneratorWithSite : Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGenerator, Microsoft.VisualStudio.OLE.Interop.IObjectWithSite
type BaseCodeGeneratorWithSite = class
    inherit BaseCodeGenerator
    interface IObjectWithSite
Public MustInherit Class BaseCodeGeneratorWithSite
Inherits BaseCodeGenerator
Implements IObjectWithSite
Inheritance
BaseCodeGeneratorWithSite
Derived
Implements

Constructors

BaseCodeGeneratorWithSite()

Properties

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

Methods

CreateExceptionMessage(Exception)

method to create an exception message given an exception

Dispose() (Inherited from BaseCodeGenerator)
Dispose(Boolean)
Generate(String, String, String, IntPtr, Int32, IVsGeneratorProgress) (Inherited from BaseCodeGenerator)
GenerateCode(String, String)

the method that does the actual work of generating code given the input file.

(Inherited from BaseCodeGenerator)
GeneratorErrorCallback(Boolean, Int32, String, Int32, Int32)

method that will communicate an error via the shell callback mechanism.

(Inherited from BaseCodeGenerator)
GetDefaultExtension()

gets the default extension for this generator

(Inherited from BaseCodeGenerator)
GetService(Guid)

method to get a service by its GUID

GetService(Type)

Method to get a service by its Type

GetSite(Guid, IntPtr)

GetSite method of IOleObjectWithSite

SetSite(Object)

SetSite method of IOleObjectWithSite

SetWaitCursor()

Set the wait cursor until the end of this generation

Explicit Interface Implementations

IVsSingleFileGenerator.DefaultExtension(String) (Inherited from BaseCodeGenerator)
IVsSingleFileGenerator.Generate(String, String, String, IntPtr[], UInt32, IVsGeneratorProgress) (Inherited from BaseCodeGenerator)

Applies to