ProvideServiceAttribute Class

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

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideServiceAttribute _
    Inherits RegistrationAttribute
'Usage
Dim instance As ProvideServiceAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideServiceAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class ProvideServiceAttribute sealed : public RegistrationAttribute
public final class ProvideServiceAttribute extends RegistrationAttribute

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.ProvideServiceAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ProvideServiceAttribute Members

Microsoft.VisualStudio.Shell Namespace

Other Resources

How to: Provide a Service (C#)