←Select platform

ServiceCollection Class Members

Summary

The following tables list the members exposed by ServiceCollection.

Public Constructors

Name Description
Public Constructor ServiceCollection Initializes a new instance of the ServiceCollection class.

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.

Public Events

Name Description
Public Event Added Occurs when a service object is added to the collection.
Public Event Removed Occurs when a service object is removed to the collection.

See Also

ServiceCollection Class

Leadtools.Medical.Workstation Namespace

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

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