Share via


DataSiteableServiceProvider<T> Class

Combines the functionality of an IVsDataSiteableObject<T> object and a ServiceProvider object. This implementation of the IVsDataSiteableObject<T> and IServiceProvider interfaces allows access to services while supporting communication to a site.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.ServiceProvider
    Microsoft.VisualStudio.Data.Framework.DataSiteableServiceProvider<T>
      Microsoft.VisualStudio.Data.Framework.DataConnectionSupport

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Class DataSiteableServiceProvider(Of T) _
    Inherits ServiceProvider _
    Implements IVsDataSiteableObject(Of T)
public class DataSiteableServiceProvider<T> : ServiceProvider, 
    IVsDataSiteableObject<T>
generic<typename T>
public ref class DataSiteableServiceProvider : public ServiceProvider, 
    IVsDataSiteableObject<T>
type DataSiteableServiceProvider<'T> =  
    class 
        inherit ServiceProvider 
        interface IVsDataSiteableObject<'T>
    end
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the parameter.

The DataSiteableServiceProvider<T> type exposes the following members.

Constructors

  Name Description
Public method DataSiteableServiceProvider<T>() Initializes a new instance of the DataSiteableServiceProvider<T> class.
Public method DataSiteableServiceProvider<T>(T) Initializes a new instance of the DataSiteableServiceProvider<T> class with a site.

Top

Properties

  Name Description
Protected property ParentProvider Gets the current instance of the parent service provider. (Inherited from ServiceProvider.)
Public property Site Gets or sets the site.

Top

Methods

  Name Description
Public method AddService(Type, ServiceCreatorCallback) Adds the specified service to the internal collection of services. (Inherited from ServiceProvider.)
Public method AddService(Type, Object) Adds the specified service to the internal collection of services. (Inherited from ServiceProvider.)
Public method AddService(Type, ServiceCreatorCallback, Boolean) Adds the specified service to the internal collection of services or to the parent service container. (Inherited from ServiceProvider.)
Public method AddService(Type, Object, Boolean) Adds the specified service to the collection of service objects or to the parent service container. (Inherited from ServiceProvider.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetService(Guid) Retrieves a service with a specified service GUID. (Inherited from ServiceProvider.)
Public method GetService(Type) Retrieves a service of the specified type. (Inherited from ServiceProvider.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event.
Public method RemoveService(Type) Removes the specified service from the internal services collection (Inherited from ServiceProvider.)
Public method RemoveService(Type, Boolean) Removes the specified service from the internal services collection or from the parent service container. (Inherited from ServiceProvider.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SiteChanged Occurs when the site has changed.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IServiceProvider.QueryService Performs as a factory for services that are exposed through an implementation of IServiceProvider. (Inherited from ServiceProvider.)

Top

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

Microsoft.VisualStudio.Data.Framework Namespace