Skip to content

net90_PropertyGridHelpers.ServiceProviders_CustomServiceProvider_AddService

dparvin edited this page May 31, 2025 · 11 revisions

CustomServiceProvider.AddService method

Registers a service instance with the specified service type.

public void AddService(Type serviceType, object serviceInstance)
parameter description
serviceType The type that identifies the service.
serviceInstance The instance of the service to associate with the type.

Exceptions

exception condition
ArgumentNullException Thrown if serviceType or serviceInstance is null.

See Also

Clone this wiki locally