共用方式為


WebFileProperties2.CustomTool 屬性

取得或設定與 Web 檔案相關聯之自訂工具的程式識別項。 自訂工具會以所表示的 Web 檔案為輸入資料,並寫入另一個新的檔案。

命名空間:  VsWebSite90
組件:  VsWebSite.Interop90 (在 VsWebSite.Interop90.dll 中)

語法

'宣告
Property CustomTool As String
    Get
    Set
string CustomTool { get; set; }
property String^ CustomTool {
    String^ get ();
    void set (String^ value);
}
abstract CustomTool : string with get, set
function get CustomTool () : String
function set CustomTool (value : String)

屬性值

型別:System.String
與專案項目相關聯之自訂工具的程式識別項。

備註

自訂工具會在設計階段轉換檔案類型。 輸入檔與輸出檔的格式會視設計用來處理檔案的自訂工具而定。

自訂工具是實作 IVsSingleFileGenerator 介面的已登錄元件。 程式識別項是描述自訂工具功能的簡短字串。 自訂工具建立者會指派這個字串。

如果 CustomTool 屬性設定為無效的識別項,專案系統會在 [工作清單] 加入一個項目,以回報無法具現化自訂工具。

注意事項注意事項

當網站關閉時,不會儲存與專案項目關聯的自訂工具。 因此,每次都必須重新產生關聯。

.NET Framework 安全性

請參閱

參考

WebFileProperties2 介面

VsWebSite90 命名空間

RunCustomTool

CustomToolNamespace