ProvideServiceOverrideAttribute Class

 

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.

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 ProvideServiceOverrideAttribute : ProvideServiceAttributeBase

NameDescription
System_CAPS_pubmethodProvideServiceOverrideAttribute(Object)

Initializes a new instance of ProvideServiceOverrideAttribute.

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.)

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.

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: