ProvideRelatedFileAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
提供注册表项的特性类,这些项要求 shell 在解决方案资源管理器中管理嵌套文件及其父项之间的关系
public ref class ProvideRelatedFileAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.CLSCompliant(false)]
public sealed class ProvideRelatedFileAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type ProvideRelatedFileAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideRelatedFileAttribute
Inherits RegistrationAttribute
- 继承
- 属性
构造函数
| ProvideRelatedFileAttribute(String, String) |
创建新的 ProvideRelatedFile 属性 |
字段
| CSharpProjectGuid |
C # 项目系统的 Guid |
| VisualBasicProjectGuid |
Visual Basic 项目系统的 Guid |
属性
| ChildExtension |
子文件的扩展名 |
| FileOptions |
有关如何管理相关文件的选项 |
| ParentExtension |
父文件的扩展名 |
| ProjectSystem |
此代码生成器注册到的项目系统 |
| TypeId |
获取此属性的当前实例。 (继承自 RegistrationAttribute) |
方法
| GetPackageRegKeyPath(Guid) |
获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。 (继承自 RegistrationAttribute) |
| Register(RegistrationAttribute+RegistrationContext) |
注册新的命令行开关 |
| Unregister(RegistrationAttribute+RegistrationContext) |
取消注册命令行开关 |