ProvideAutomationObjectAttribute Class

Definition

Modifying your Package-derived class with this attribute declares that it provides a particular automation object.

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

Remarks

Attributes that modify a VSPackage do not affect the behavior of the VSPackage. They may be used by registration tools to register the proper information with Visual Studio.

Constructors

ProvideAutomationObjectAttribute(String)

Initializes a new instance of ProvideAutomationObjectAttribute.

Properties

Description

Gets or sets the description of the automation object.

Name

Gets the name of the automation object.

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)

Registers this attribute when called by an external registration tool such as RegPkg.exe.

Unregister(RegistrationAttribute+RegistrationContext)

Removes the registry key when called by an external registration tool such as RegPkg.exe.

Applies to