Share via


OnlyNavigateToSupportAttribute Class

Definition

Marks an INavigateToItemProviderFactory as only usable in a Go To context.

[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
Inheritance
OnlyNavigateToSupportAttribute
Attributes

Remarks

By default, Navigate To provider are also invoked by some other search features like Visual Studio Search and All In One Search. This attribute indicates other search features not to invoke this provider, which therefore keep this provider exclusively for Navigate To and nothing else. A good reason for using the OnlyNavigateToSupportAttribute is when you want to create a separated dedicated provider for another search feature.

Constructors

OnlyNavigateToSupportAttribute()

Properties

OnlyNavigateToSupport

Indicates that the INavigateToItemProviderFactory can only be used when searching through Go To.

Applies to