GetService Method
Gets the service object of the specified type, if it is available.
Syntax
[Obsolete("Use the DependencyResolver instead")] public abstract object GetService( Type serviceType )
[Obsolete("Use the DependencyResolver instead")] public: abstract Object^ GetService( Type^ serviceType )
Parameters
- serviceType
- The Type of the service to retrieve.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also