C# Class Microsoft.Samples.VisualStudio.GeneratorSample.BaseCodeGeneratorWithSite

Inheritance: BaseCodeGenerator, IObjectWithSite
Afficher le fichier Open project: StevePotter/LessCssForVisualStudio

Private Properties

Свойство Type Description
VSOLE void
VSOLE void

Méthodes protégées

Méthode Description
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

GetProject ( ) : Project

Returns the EnvDTE.Project object of the project containing the project item the code generator was called on

GetProjectItem ( ) : ProjectItem

Returns the EnvDTE.ProjectItem object that corresponds to the project item the code generator was called on

GetService ( System.Guid serviceGuid ) : object

Method to get a service by its GUID

GetService ( Type serviceType ) : object

Method to get a service by its Type

GetVSProject ( ) : VSProject

Returns the VSLangProj.VSProject object of the project containing the project item the code generator was called on

GetVSProjectItem ( ) : VSProjectItem

Returns the VSLangProj.VSProjectItem object that corresponds to the project item the code generator was called on

Private Methods

Méthode Description
VSOLE ( System.Guid &riid, IntPtr &ppvSite ) : void

GetSite method of IOleObjectWithSite

VSOLE ( object pUnkSite ) : void

SetSite method of IOleObjectWithSite

Method Details

GetCodeProvider() protected méthode

Returns a CodeDomProvider object for the language of the project containing the project item the generator was called on
protected GetCodeProvider ( ) : CodeDomProvider
Résultat System.CodeDom.Compiler.CodeDomProvider

GetDefaultExtension() protected méthode

Gets the default extension of the output file from the CodeDomProvider
protected GetDefaultExtension ( ) : string
Résultat string

GetProject() protected méthode

Returns the EnvDTE.Project object of the project containing the project item the code generator was called on
protected GetProject ( ) : Project
Résultat Project

GetProjectItem() protected méthode

Returns the EnvDTE.ProjectItem object that corresponds to the project item the code generator was called on
protected GetProjectItem ( ) : ProjectItem
Résultat ProjectItem

GetService() protected méthode

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

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

GetVSProject() protected méthode

Returns the VSLangProj.VSProject object of the project containing the project item the code generator was called on
protected GetVSProject ( ) : VSProject
Résultat VSProject

GetVSProjectItem() protected méthode

Returns the VSLangProj.VSProjectItem object that corresponds to the project item the code generator was called on
protected GetVSProjectItem ( ) : VSProjectItem
Résultat VSProjectItem