ProvideEditorLogicalViewAttribute 类

定义

此属性将逻辑视图添加到编辑器工厂创建的编辑器中。

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

构造函数

ProvideEditorLogicalViewAttribute(Object, String)

创建新的 RegisterEditorLogicalView 属性来注册编辑器提供的逻辑视图。

属性

FactoryType

获取表示编辑器工厂类型的 Guid

IsTrusted

获取或设置此逻辑视图的信任标志。 如果视图不受信任,则无法从向导或自动化代码打开该视图。

LogicalView

获取表示逻辑视图的 Guid

TypeId

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

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

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

Unregister(RegistrationAttribute+RegistrationContext)

取消注册此逻辑视图。

适用于