Share via


DataSiteableServiceProvider<T> Class

Definition

Represents an implementation of IVsDataSiteableObject and IServiceProvider interfaces.

generic <typename T>
public ref class DataSiteableServiceProvider : Microsoft::VisualStudio::Data::Framework::ServiceProvider, Microsoft::VisualStudio::Data::Core::IVsDataSiteableObject<T>
public class DataSiteableServiceProvider<T> : Microsoft.VisualStudio.Data.Framework.ServiceProvider, Microsoft.VisualStudio.Data.Core.IVsDataSiteableObject<T>
type DataSiteableServiceProvider<'T> = class
    inherit ServiceProvider
    interface IVsDataSiteableObject<'T>
Public Class DataSiteableServiceProvider(Of T)
Inherits ServiceProvider
Implements IVsDataSiteableObject(Of T)

Type Parameters

T

The type of the parameter.

Inheritance
DataSiteableServiceProvider<T>
Derived
Implements

Constructors

DataSiteableServiceProvider<T>()

Initializes a new instance of the DataSiteableServiceProvider<T> class.

DataSiteableServiceProvider<T>(T)

Initializes a new instance of the DataSiteableServiceProvider<T> class with a site.

Properties

ParentProvider

Gets the current instance of the parent service provider.

(Inherited from ServiceProvider)
Site

Gets or sets the site.

Methods

AddService(Type, Object, Boolean)

Adds the specified service to the collection of service objects or to the parent service container.

(Inherited from ServiceProvider)
AddService(Type, Object)

Adds the specified service to the internal collection of services.

(Inherited from ServiceProvider)
AddService(Type, ServiceCreatorCallback, Boolean)

Adds the specified service to the internal collection of services or to the parent service container.

(Inherited from ServiceProvider)
AddService(Type, ServiceCreatorCallback)

Adds the specified service to the internal collection of services.

(Inherited from ServiceProvider)
GetService(Guid)

Retrieves a service with a specified service GUID.

(Inherited from ServiceProvider)
GetService(Type)

Retrieves a service of the specified type.

(Inherited from ServiceProvider)
OnSiteChanged(EventArgs)

Raises the SiteChanged event.

RemoveService(Type, Boolean)

Removes the specified service from the internal services collection or from the parent service container.

(Inherited from ServiceProvider)
RemoveService(Type)

Removes the specified service from the internal services collection

(Inherited from ServiceProvider)

Events

SiteChanged

Occurs when the site has changed.

Explicit Interface Implementations

IServiceProvider.QueryService(Guid, Guid, IntPtr)

Performs as a factory for services that are exposed through an implementation of IServiceProvider.

(Inherited from ServiceProvider)

Extension Methods

QueryService(IServiceProvider, Guid)

Gets a service exposed by a service provider based on its service GUID.

QueryService<TService>(IServiceProvider)

Gets a service exposed by a service provider based on its service type.

Applies to