C# Class TypeSql.VisualStudio.TypeSql

Inheritance: IVsSingleFileGenerator, IObjectWithSite
Afficher le fichier Open project: MJRichardson/TypeSql

Private Properties

Свойство Type Description
DetermineTargetLanguage TargetLanguage
GetCodeProvider System.CodeDom.Compiler.CodeDomProvider
GetDefaultExtension string
GetService object

Méthodes publiques

Méthode Description
DefaultExtension ( string &pbstrDefaultExtension ) : int
Generate ( string wszInputFilePath, string bstrInputFileContents, string wszDefaultNamespace, IntPtr rgbOutputFileContents, uint &pcbOutput, IVsGeneratorProgress pGenerateProgress ) : int
GetSite ( System.Guid &riid, IntPtr &ppvSite ) : void
SetSite ( object pUnkSite ) : void
TypeSql ( ) : System

Méthodes protégées

Méthode Description
GetService ( Type serviceType ) : object

Method to get a service by its Type

Private Methods

Méthode Description
DetermineTargetLanguage ( ) : TargetLanguage
GetCodeProvider ( ) : CodeDomProvider

Returns a CodeDomProvider object for the language of the project containing the project item the generator was called on

GetDefaultExtension ( ) : string

Gets the default extension of the output file from the CodeDomProvider

GetService ( System.Guid serviceGuid ) : object

Method to get a service by its GUID

Method Details

DefaultExtension() public méthode

public DefaultExtension ( string &pbstrDefaultExtension ) : int
pbstrDefaultExtension string
Résultat int

Generate() public méthode

public Generate ( string wszInputFilePath, string bstrInputFileContents, string wszDefaultNamespace, IntPtr rgbOutputFileContents, uint &pcbOutput, IVsGeneratorProgress pGenerateProgress ) : int
wszInputFilePath string
bstrInputFileContents string
wszDefaultNamespace string
rgbOutputFileContents System.IntPtr
pcbOutput uint
pGenerateProgress IVsGeneratorProgress
Résultat int

GetService() protected méthode

Method to get a service by its Type
protected GetService ( Type serviceType ) : object
serviceType System.Type Type of service to retrieve
Résultat object

GetSite() public méthode

public GetSite ( System.Guid &riid, IntPtr &ppvSite ) : void
riid System.Guid
ppvSite System.IntPtr
Résultat void

SetSite() public méthode

public SetSite ( object pUnkSite ) : void
pUnkSite object
Résultat void

TypeSql() public méthode

public TypeSql ( ) : System
Résultat System