共用方式為


OnlyNavigateToSupportAttribute 類別

定義

INavigateToItemProviderFactory將標示為只能在 Go To 內容中使用。

[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將標示為只能在 Go To 內容中使用。

屬性

OnlyNavigateToSupport

表示 INavigateToItemProviderFactory 只能在搜尋 [移至] 時使用 。

適用於