Visual Basic (Usage) | Copy Code |
---|---|
Dim value As T value = ServiceLocator.Retrieve(Of T)() |
Type Parameters
- T
- Type of object to get from the container.
Return Value
The retrieved object.Registers an IServiceLog implementation with the global unity container.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7