ProvideExtenderAttribute ProvideExtenderAttribute ProvideExtenderAttribute ProvideExtenderAttribute ProvideExtenderAttribute Class

Definition

Provides an extender for Visual Studio. This class cannot be inherited.

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

Remarks

This attribute provides an extender (an object that implements IExtenderProvider) with Visual Studio. To use ProvideExtenderAttribute, place it on a class that inherits from Package or implements IVsPackage.

This attribute class is used only to provide data for external registration tools. It does not have any effect on the runtime behavior of the VSPackage.

Note

C# automatically appends the word "Attribute" to the name of any attribute class. In C# code, refer to this attribute as ProvideExtender.

Note

The GUIDs for the Visual C# and Visual Basic project types are {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} and {F184B08F-C81C-45F6-A57F-5ABD9991F28F}, respectively.

When to Call

Apply ProvideExtenderAttribute when your VSPackage implements a static extender.

Registry Entries

The following registry entries are created by ProvideExtenderAttribute:

  • <VSROOT>\Extenders\{CATID}\EditorName\

  • <VSROOT>\Extenders\{CATID}\EditorName\@={ExtenderGuid}

Samples

Constructors

ProvideExtenderAttribute(String, String, String) ProvideExtenderAttribute(String, String, String) ProvideExtenderAttribute(String, String, String) ProvideExtenderAttribute(String, String, String) ProvideExtenderAttribute(String, String, String)

Initializes a new instance of ProvideExtenderAttribute for the specified extender.

Properties

ExtendeeCatId ExtendeeCatId ExtendeeCatId ExtendeeCatId ExtendeeCatId

Gets the GUID category ID of the element to be extended.

Extender Extender Extender Extender Extender

Gets the GUID of the extender.

ExtenderName ExtenderName ExtenderName ExtenderName ExtenderName

Gets the name of the extender.

TypeId TypeId TypeId TypeId TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid)

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

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext)

Provides registration information about a VSPackage when called by an external registration tool such as RegPkg.exe.

Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext)

Removes registration information about a VSPackage when called by an external registration tool such as RegPkg.exe.

Applies to