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.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)


[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, 
	Inherited = true)]
public sealed class ProvideServiceAttribute : ProvideServiceAttributeBase

NameDescription
System_CAPS_pubmethodProvideServiceAttribute(Object)

Initializes a new instance of ProvideServiceAttribute.

NameDescription
System_CAPS_pubpropertyIsAsyncQueryable

Deterimines whether the service supports being retrieved via the async service provider.(Inherited from ProvideServiceAttributeBase.)

System_CAPS_pubpropertyService

Gets the type of the service.(Inherited from ProvideServiceAttributeBase.)

System_CAPS_pubpropertyServiceName

Gets or sets the name of the service.(Inherited from ProvideServiceAttributeBase.)

System_CAPS_pubpropertyServiceType

Gets the service's GUID declared in this attribute.(Inherited from ProvideServiceAttributeBase.)

System_CAPS_pubpropertyTypeId

Gets the current instance of this attribute.(Inherited from RegistrationAttribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodRegister(RegistrationAttribute.RegistrationContext)

Registers this attribute with the given context.(Inherited from ProvideServiceAttributeBase.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnregister(RegistrationAttribute.RegistrationContext)

Unregisters this attribute.(Inherited from ProvideServiceAttributeBase.)

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

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

Return to top
Show: