OnlyNavigateToSupportAttribute 类

定义

INavigateToItemProviderFactory将 标记为仅在转到上下文中可用。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public sealed class OnlyNavigateToSupportAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type OnlyNavigateToSupportAttribute = class
    inherit Attribute
Public NotInheritable Class OnlyNavigateToSupportAttribute
Inherits Attribute
继承
OnlyNavigateToSupportAttribute
属性

注解

默认情况下,其他一些搜索功能(如 Visual Studio 搜索 和 All In one 搜索)也会调用“导航到”提供程序。 此属性指示其他搜索功能不调用此提供程序,因此,此提供程序仅保留用于“导航到”,而不使用其他提供程序。 使用 OnlyNavigateToSupportAttribute 的一个充分原因是你希望为另一个搜索功能创建单独的专用提供程序。

构造函数

OnlyNavigateToSupportAttribute()

INavigateToItemProviderFactory将 标记为仅在转到上下文中可用。

属性

OnlyNavigateToSupport

指示 INavigateToItemProviderFactory 只能在通过“转到”进行搜索时使用。

适用于