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 | |
---|---|---|
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. |
Top
Properties
Name | Description | |
---|---|---|
ParentProvider | Gets the current instance of the parent service provider. (Inherited from ServiceProvider.) | |
Site | Gets or sets the site. |
Top
Methods
Name | Description | |
---|---|---|
AddService(Type, ServiceCreatorCallback) | Adds the specified service to the internal collection of services. (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, Object, Boolean) | Adds the specified service to the collection of service objects or to the parent service container. (Inherited from ServiceProvider.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
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.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnSiteChanged | Raises the SiteChanged event. | |
RemoveService(Type) | Removes the specified service from the internal services collection (Inherited from ServiceProvider.) | |
RemoveService(Type, Boolean) | Removes the specified service from the internal services collection or from the parent service container. (Inherited from ServiceProvider.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
SiteChanged | Occurs when the site has changed. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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.