←Select platform
In This Topic ▼

ServiceCollection Class Methods

Summary

For a list of all members of this type, see ServiceCollection members

Public Methods

Name Description
Public Method Add Adds a service into the collection with a specific type.
Public Method Add<TService> Adds a service into the collection with a specific type.
Public Method Contains<TService> Checks whether a service of a given type exists in the collection.
Public Method Get Returns a service of a specific type.
Public Method Get<TService> Returns a service of a specific type.
Public Method GetEnumerator Returns an IEnumerator that loops through all the services in the collection.
Public Method Remove Removes a service from the collection with a given type.
Public Method Remove<TService> Removes a service from the collection with a given type.

Protected Methods

Name Description
Protected Method OnAdded Raises the Added event.
Protected Method OnRemoved Raises the Removed event.

See Also

Reference

ServiceCollection Class

Leadtools.Medical.Workstation Namespace

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Workstation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.