ProvideServiceOverrideAttribute ProvideServiceOverrideAttribute ProvideServiceOverrideAttribute ProvideServiceOverrideAttribute ProvideServiceOverrideAttribute Class

Definition

This attribute indicates that the package proffers a replacement for a default service. This attribute is included in the definition of a subclass of Package or a class that implements IVsPackage.

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

Remarks

Only one replacement or override is permitted for a default service. The service defined with this attribute will be registered with the “ServiceOverrides” registry key.

Constructors

ProvideServiceOverrideAttribute(Object) ProvideServiceOverrideAttribute(Object) ProvideServiceOverrideAttribute(Object) ProvideServiceOverrideAttribute(Object) ProvideServiceOverrideAttribute(Object)

Initializes a new instance of ProvideServiceOverrideAttribute.

Properties

IsAsyncQueryable IsAsyncQueryable IsAsyncQueryable IsAsyncQueryable IsAsyncQueryable

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

(Inherited from ProvideServiceAttributeBase)
Service Service Service Service Service

Type of the service.

(Inherited from ProvideServiceAttributeBase)
ServiceName ServiceName ServiceName ServiceName ServiceName

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