IWizard 介面
定義範本精靈擴充功能的邏輯。
命名空間: Microsoft.VisualStudio.TemplateWizard
組件: Microsoft.VisualStudio.TemplateWizardInterface (在 Microsoft.VisualStudio.TemplateWizardInterface.dll 中)
語法
'宣告
Public Interface IWizard
public interface IWizard
public interface class IWizard
type IWizard = interface end
public interface IWizard
IWizard 型別會公開下列成員。
方法
名稱 | 說明 | |
---|---|---|
![]() |
BeforeOpeningFile | 在開啟範本中的項目之前執行自訂精靈邏輯。 |
![]() |
ProjectFinishedGenerating | 在專案完成產生動作時執行自訂精靈邏輯。 |
![]() |
ProjectItemFinishedGenerating | 在專案項目完成產生動作時執行自訂精靈邏輯。 |
![]() |
RunFinished | 在精靈完成所有工作時執行自訂精靈邏輯。 |
![]() |
RunStarted | 在範本精靈開始執行時執行自訂精靈邏輯。 |
![]() |
ShouldAddProjectItem | 表示指定的專案項目是否應該加入至專案。 |
回頁首
備註
當 vsprvs 從範本執行個體化專案或項目時,會執行範本精靈擴充功能。如需詳細資訊,請參閱 HOW TO:搭配專案範本使用精靈。