ProvideIncludeFolderAttribute 類別

登錄資料夾以搜尋包含檔案的文字範本。 如果您要在安裝套件時註冊包含資料夾,請將此屬性套用至套件類別。

此 API 不符合 CLS 標準。 

繼承階層架構

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.TextTemplating.VSHost.ProvideIncludeFolderAttribute

命名空間:  Microsoft.VisualStudio.TextTemplating.VSHost
組件:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (在 Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll 中)

語法

'宣告
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
<CLSCompliantAttribute(False)> _
Public NotInheritable Class ProvideIncludeFolderAttribute _
    Inherits RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
[CLSCompliantAttribute(false)]
public sealed class ProvideIncludeFolderAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
[CLSCompliantAttribute(false)]
public ref class ProvideIncludeFolderAttribute sealed : public RegistrationAttribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)>]
[<CLSCompliantAttribute(false)>]
type ProvideIncludeFolderAttribute =  
    class
        inherit RegistrationAttribute
    end
public final class ProvideIncludeFolderAttribute extends RegistrationAttribute

ProvideIncludeFolderAttribute 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 ProvideIncludeFolderAttribute 登錄資料夾以搜尋包含檔案的文字範本。如果您要在安裝套件時註冊包含資料夾,請將此屬性套用至套件類別。

回頁首

屬性

  名稱 說明
公用屬性 Extension 可能包含此資料夾中之範本檔的副檔名 (例如 .tt)。
公用屬性 Folder 正在註冊之內含資料夾的路徑。這是與所要註冊組件的元件路徑相對的路徑。
公用屬性 Index 資料夾之以零為起始的索引
公用屬性 TypeId (繼承自 RegistrationAttribute)。

回頁首

方法

  名稱 說明
公用方法 Equals 基礎架構。傳回數值,表示這個執行個體是否等於指定的物件。 (繼承自 Attribute)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 傳回這個執行個體的雜湊程式碼。 (繼承自 Attribute)。
受保護的方法 GetPackageRegKeyPath (繼承自 RegistrationAttribute)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 IsDefaultAttribute 在衍生類別中覆寫時,表示這個執行個體的值是否為衍生類別的預設值。 (繼承自 Attribute)。
公用方法 Match 在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。 (繼承自 Attribute)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 Register 定義當使用者安裝套件時如何登錄包含資料夾。通常會建立指令碼來加入登錄項目。 (覆寫 RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext)。)
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 Unregister 定義如何解除登錄包含資料夾。通常會刪除登錄機碼。 (覆寫 RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext)。)

回頁首

欄位

  名稱 說明
公用欄位靜態成員 IncludeFoldersKeyName 指示詞處理器的特定登錄機碼名稱
公用欄位靜態成員 TextTemplatingKeyName 文字樣板化的根登錄機碼名稱

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 _Attribute.GetIDsOfNames 將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.GetTypeInfo 擷取物件的型別資訊,可以用來取得介面的型別資訊。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.GetTypeInfoCount 擷取物件提供的型別資訊介面數目 (0 或 1)。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.Invoke 提供物件所公開的屬性和方法的存取權。 (繼承自 Attribute)。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.TextTemplating.VSHost 命名空間