Exports a service, only register it under the specified types.

C# | Visual Basic | Visual C++ | J# |
IServiceRegistration Publish( Object service, params Type[] types )
Function Publish ( _ service As Object, _ ParamArray types As Type() _ ) As IServiceRegistration
IServiceRegistration^ Publish( Object^ service, ... array<Type^>^ types )
IServiceRegistration Publish( Object service, Type[] types )

Service registration.