ProvideEditorFilenameAttribute 类

定义

将文件名与给定的编辑器工厂相关联。

public ref class ProvideEditorFilenameAttribute : Microsoft::VisualStudio::Shell::ProvideEditorAttributeBase
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class ProvideEditorFilenameAttribute : Microsoft.VisualStudio.Shell.ProvideEditorAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideEditorFilenameAttribute = class
    inherit ProvideEditorAttributeBase
Public Class ProvideEditorFilenameAttribute
Inherits ProvideEditorAttributeBase
继承
属性

构造函数

ProvideEditorFilenameAttribute(Object, String, Int32)

初始化 ProvideEditorFilenameAttribute 的实例

属性

DefaultName

编辑器的默认名称

Factory

编辑器工厂 guid。

(继承自 ProvideEditorAttributeBase)
Filename

扩展名或文件名) (文件说明符

NameResourceID

编辑器名称的资源 ID

Priority

此文件说明符注册的优先级。

RegisterFactory

指示是否还要注册指定的编辑器工厂。 默认为 true。

TypeId

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

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

调用以便向给定的上下文注册此属性。 上下文包含应放置注册信息的位置。 它还包含正在注册的类型和路径信息。

对于注册和注销,调用此方法。 不同之处在于,取消注册仅使用一个配置单元来反转应用于它的更改。

Unregister(RegistrationAttribute+RegistrationContext)

取消注册此编辑器。

适用于