Exports a service, only register it under the specified types.
Declaration Syntax
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 )
Parameters
- service (Object)
- Service to export.
- types (array<Type>[]()[][])
- Types under which to register the service.
Return Value
Service registration.