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