Skip to main content
.NET Framework Class Library
IServiceContainer..::.AddService Method





Adds the specified service to the service container.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
 NameDescription
Public methodAddService(Type, ServiceCreatorCallback)Adds the specified service to the service container.
Public methodAddService(Type, Object)Adds the specified service to the service container.
Public methodAddService(Type, ServiceCreatorCallback, Boolean)Adds the specified service to the service container, and optionally promotes the service to parent service containers.
Public methodAddService(Type, Object, Boolean)Adds the specified service to the service container, and optionally promotes the service to any parent service containers.
Top