- instance
- Object to be returned.
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As I ServiceLocator.Register(Of I)(instance) |
Parameters
- instance
- Object to be returned.
Type Parameters
- I
- Type of instance to register (may be an implemented interface instead of the full type).
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