ProvideServiceAttribute ProvideServiceAttribute ProvideServiceAttribute ProvideServiceAttribute ProvideServiceAttribute Class

Definition

This attribute indicates that the package proffers a service when applied to a subclass of Package or a class that implements IVsPackage.

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

Remarks

The service defined with this attribute will be registered under the “Services” registry key.

Constructors

ProvideServiceAttribute(Object) ProvideServiceAttribute(Object) ProvideServiceAttribute(Object) ProvideServiceAttribute(Object) ProvideServiceAttribute(Object)

Initializes a new instance of ProvideServiceAttribute.

Properties

IsAsyncQueryable IsAsyncQueryable IsAsyncQueryable IsAsyncQueryable IsAsyncQueryable

Deterimines whether the service supports being retrieved via the async service provider.

(Inherited from ProvideServiceAttributeBase)
Service Service Service Service Service

Gets the type of the service.

(Inherited from ProvideServiceAttributeBase)
ServiceName ServiceName ServiceName ServiceName ServiceName

Gets or sets the name of the service.

(Inherited from ProvideServiceAttributeBase)
ServiceType ServiceType ServiceType ServiceType ServiceType

Gets the service's GUID declared in this attribute.

(Inherited from ProvideServiceAttributeBase)
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)

Registers this attribute with the given context.

(Inherited from ProvideServiceAttributeBase)
Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

(Inherited from ProvideServiceAttributeBase)

Applies to