Container.GetServices<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Returns all services of the specified type.
public:
generic <typename T>
where T : class virtual System::Collections::Generic::IList<T> ^ GetServices();
public System.Collections.Generic.IList<T> GetServices<T> () where T : class;
abstract member GetServices : unit -> System.Collections.Generic.IList<'T (requires 'T : null)> (requires 'T : null)
override this.GetServices : unit -> System.Collections.Generic.IList<'T (requires 'T : null)> (requires 'T : null)
Public Function GetServices(Of T As Class) () As IList(Of T)
Type Parameters
- T
The type of service to return.
Returns
IList<T>
Type: IList<T>
A list of services.