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 (Object)
- Service to export.
- types (array<Type>[]()[][])
- Types under which to register the service.

Service registration.