特性类为请求 shell 提供注册表项,以管理解决方案资源管理器中嵌套的文件和其父级之间的关系
此 API 不兼容 CLS。
继承层次结构
System.Object
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Modeling.Shell.ProvideRelatedFileAttribute
命名空间: Microsoft.VisualStudio.Modeling.Shell
程序集: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)
语法
声明
<CLSCompliantAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class ProvideRelatedFileAttribute _
Inherits RegistrationAttribute
[CLSCompliantAttribute(false)]
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ProvideRelatedFileAttribute : RegistrationAttribute
ProvideRelatedFileAttribute 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ProvideRelatedFileAttribute | 创建一个新的 ProvideRelatedFile 特性 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
ChildExtension | 子文件扩展名 |
![]() |
FileOptions | 相关文件是如何托管的选项。 |
![]() |
ParentExtension | 父文件扩展名。 |
![]() |
ProjectSystem | 向其注册此代码生成器的项目系统 |
![]() |
TypeId | (继承自 RegistrationAttribute。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | 基础结构。返回一个值,该值指示此实例是否与指定的对象相等。 (继承自 Attribute。) |
![]() |
GetHashCode | 返回此实例的哈希代码。 (继承自 Attribute。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
IsDefaultAttribute | 当在派生类中重写时,指示此实例的值是否是派生类的默认值。 (继承自 Attribute。) |
![]() |
Match | 当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。 (继承自 Attribute。) |
![]() |
Register | 注册新的命令行开关 (重写 RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext)。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
![]() |
Unregister | 注销命令行开关 (重写 RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext)。) |
页首
字段
名称 | 说明 | |
---|---|---|
![]() ![]() |
CSharpProjectGuid | C# “项目系统”的 Guid |
![]() ![]() |
VisualBasicProjectGuid | Visual Basic “项目系统”的 Guid |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
_Attribute.GetIDsOfNames | 将一组名称映射为对应的一组调度标识符。 (继承自 Attribute。) |
![]() ![]() |
_Attribute.GetTypeInfo | 检索对象的类型信息,然后可以使用该信息获取接口的类型信息。 (继承自 Attribute。) |
![]() ![]() |
_Attribute.GetTypeInfoCount | 检索对象提供的类型信息接口的数量(0 或 1)。 (继承自 Attribute。) |
![]() ![]() |
_Attribute.Invoke | 提供对某一对象公开的属性和方法的访问。 (继承自 Attribute。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。