GetServices(T) Method
Gets the collection of service instances.
Namespace: Microsoft.Dynamics.Commerce.Runtime
Assembly: Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)
Syntax
'Declaration
Public Function GetServices(Of T As IService) As IEnumerable(Of T)
'Usage
Dim instance As CommerceRuntime
Dim returnValue As IEnumerable(Of T)
returnValue = instance.GetServices()
public IEnumerable<T> GetServices<T>()
where T : IService
public:
generic<typename T>
where T : IService
IEnumerable<T>^ GetServices()
Type Parameters
- T
Return Value
Type: System.Collections.Generic.IEnumerable<T>
An instance to the service.