Compartilhar via


ServiceProvider.AddService Method

Include Protected Members
Include Inherited Members

Adds the specified service to the internal collection of services.

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

Overload List

  Name Description
Public method AddService(Type, ServiceCreatorCallback) Adds the specified service to the internal collection of services.
Public method AddService(Type, Object) Adds the specified service to the internal collection of services.
Public method AddService(Type, ServiceCreatorCallback, Boolean) Adds the specified service to the internal collection of services or to the parent service container.
Public method AddService(Type, Object, Boolean) Adds the specified service to the collection of service objects or to the parent service container.

Top

See Also

Reference

ServiceProvider Class

Microsoft.VisualStudio.Data.Framework Namespace