Exports a service, register it under the specified lookup names.

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

- service (Object)
- Service to export.
- lookupNames (array<String>[]()[][])
- Lookup names under which to register the service.

Service registration.