VistaDB 6
VistaDB.Entity Namespace / VistaDBProviderServices Class / GetServices Method
The type of the service to be resolved.
An optional key providing additional information for resolving the service.


In This Topic
    GetServices Method
    In This Topic
    Called to resolve additional default provider services when a derived type is registered as an EF provider either using an entry in the application's config file or through code-based registration in System.Data.Entity.DbConfiguration. The implementation of this method in this class uses the resolvers added with the AddDependencyResolver method to resolve dependencies.
    Syntax
    'Declaration
     
    
    Public Function GetServices( _
       ByVal type As System.Type, _
       ByVal key As System.Object _
    ) As System.Collections.Generic.IEnumerable(Of Object)
    'Usage
     
    
    Dim instance As VistaDBProviderServices
    Dim type As System.Type
    Dim key As System.Object
    Dim value As System.Collections.Generic.IEnumerable(Of Object)
     
    value = instance.GetServices(type, key)
    public System.Collections.Generic.IEnumerable<object> GetServices( 
       System.Type type,
       System.object key
    )

    Parameters

    type
    The type of the service to be resolved.
    key
    An optional key providing additional information for resolving the service.

    Return Value

    All registered services that satisfy the given type and key, or an empty enumeration if there are none.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also