C# 클래스 Microsoft.Samples.VisualStudio.GeneratorSample.BaseCodeGeneratorWithSite

상속: BaseCodeGenerator, IObjectWithSite
파일 보기 프로젝트 열기: StevePotter/LessCssForVisualStudio

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