ProvideRelatedFileAttribute 类

定义

重要

此 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)]
public sealed class ProvideRelatedFileAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type ProvideRelatedFileAttribute = class
    inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ProvideRelatedFileAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideRelatedFileAttribute
Inherits RegistrationAttribute
继承
ProvideRelatedFileAttribute
属性

构造函数

ProvideRelatedFileAttribute(String, String)

Create新的 ProvideRelatedFile 属性

字段

CSharpProjectGuid

C# 项目系统的 Guid

VisualBasicProjectGuid

Visual Basic 项目系统的 Guid

属性

ChildExtension

子文件的扩展名

FileOptions

有关如何管理相关文件的选项

ParentExtension

父文件的扩展名

ProjectSystem

此代码生成器注册到的项目系统

TypeId

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

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

注册新的命令行开关

Unregister(RegistrationAttribute+RegistrationContext)

取消注册命令行开关

适用于