ProvideIncludeFolderAttribute 类

定义

重要

此 API 不符合 CLS。

用于提供 T4 的注册表项的属性类。VSHost include 文件夹。

public ref class ProvideIncludeFolderAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideIncludeFolderAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.CLSCompliant(false)]
public sealed class ProvideIncludeFolderAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class ProvideIncludeFolderAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type ProvideIncludeFolderAttribute = class
    inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ProvideIncludeFolderAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideIncludeFolderAttribute
Inherits RegistrationAttribute
继承
ProvideIncludeFolderAttribute
属性

构造函数

ProvideIncludeFolderAttribute(String, Int32, String)

构造函数

字段

IncludeFoldersKeyName

指令处理器的特定注册表项的名称

TextTemplatingKeyName

文本模板化根注册表项的名称

属性

Extension

要应用此包含文件夹的模板文件的扩展名。

Folder

要注册的包含文件夹的路径。 此路径相对于正在注册的程序集的组件路径。

Index

文件夹的从零开始的索引

TypeId

重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

注册文本模板化包含文件夹

Unregister(RegistrationAttribute+RegistrationContext)

取消注册文本模板包含文件夹

适用于