Share via


ProvideSearchProviderAttribute Class

Definition

This attribute registers the package as a search provider (IVsSearchProvider) extender.
The type and name passed in determines the search provider being registered.

public ref class ProvideSearchProviderAttribute sealed : Microsoft::VisualStudio::Shell::ExtensionPointRegistrationAttribute
public ref class ProvideSearchProviderAttribute sealed : Microsoft::VisualStudio::Shell::ExtensionPointRegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideSearchProviderAttribute : Microsoft.VisualStudio.Shell.ExtensionPointRegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideSearchProviderAttribute = class
    inherit ExtensionPointRegistrationAttribute
Public NotInheritable Class ProvideSearchProviderAttribute
Inherits ExtensionPointRegistrationAttribute
Inheritance
Attributes

Constructors

ProvideSearchProviderAttribute(Type, String)

Specify that the package implements IVsSearchProviderFactory interface (e.g. by deriving from ExtensionPointPackage) and declares the type implementing the search provider.

Properties

ExtensionProvidersKey

The path in registry where the extension providers are declared. Override in derived classes.

(Inherited from ExtensionPointRegistrationAttribute)
ExtensionProviderType

The type of the extension provider (the interface implemented)

(Inherited from ExtensionPointRegistrationAttribute)
Name

The human-readable name of the extension point provider This may be either a non-localized string or a decimal resource identifier prefixed by '@' indicating a managed resource. e.g. "@1234" The '#' prefix may be used to hint at a native resource.

(Inherited from ExtensionPointRegistrationAttribute)
Provider

The provider's GUID

(Inherited from ExtensionPointRegistrationAttribute)
ProviderGuidString

The provider's GUID expressed as a string

(Inherited from ExtensionPointRegistrationAttribute)
ProviderType

The type which implements the associated extension point in this package

(Inherited from ExtensionPointRegistrationAttribute)
TypeId

Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Called to register this attribute with the given context. The context contains the location where the registration information should be placed. it also contains such as the type being registered, and path information.

(Inherited from ExtensionPointRegistrationAttribute)
Unregister(RegistrationAttribute+RegistrationContext)

Unregister this Extension point provider specification.

(Inherited from ExtensionPointRegistrationAttribute)

Applies to