C# Класс Microsoft.Samples.VisualStudio.GeneratorSample.BaseCodeGeneratorWithSite

Наследование: BaseCodeGenerator, IObjectWithSite
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
VSOLE void
VSOLE void

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
VSOLE ( System.Guid &riid, IntPtr &ppvSite ) : void

GetSite method of IOleObjectWithSite

VSOLE ( object pUnkSite ) : void

SetSite method of IOleObjectWithSite

Описание методов

GetCodeProvider() защищенный Метод

Returns a CodeDomProvider object for the language of the project containing the project item the generator was called on
protected GetCodeProvider ( ) : CodeDomProvider
Результат System.CodeDom.Compiler.CodeDomProvider

GetDefaultExtension() защищенный Метод

Gets the default extension of the output file from the CodeDomProvider
protected GetDefaultExtension ( ) : string
Результат string

GetProject() защищенный Метод

Returns the EnvDTE.Project object of the project containing the project item the code generator was called on
protected GetProject ( ) : Project
Результат Project

GetProjectItem() защищенный Метод

Returns the EnvDTE.ProjectItem object that corresponds to the project item the code generator was called on
protected GetProjectItem ( ) : ProjectItem
Результат ProjectItem

GetService() защищенный Метод

Method to get a service by its GUID
protected GetService ( System.Guid serviceGuid ) : object
serviceGuid System.Guid GUID of service to retrieve
Результат object

GetService() защищенный Метод

Method to get a service by its Type
protected GetService ( Type serviceType ) : object
serviceType System.Type Type of service to retrieve
Результат object

GetVSProject() защищенный Метод

Returns the VSLangProj.VSProject object of the project containing the project item the code generator was called on
protected GetVSProject ( ) : VSProject
Результат VSProject

GetVSProjectItem() защищенный Метод

Returns the VSLangProj.VSProjectItem object that corresponds to the project item the code generator was called on
protected GetVSProjectItem ( ) : VSProjectItem
Результат VSProjectItem