Container.GetServices<T> Method
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();
C#
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)
- T
The type of service to return.
IList<T>
Type: IList<T>
A list of services.
Product | Versions |
---|---|
System Center SM SDK | 2012, 2016 |