Gets the requested service.
'Declaration
Public Overloads Shared Function GetService( _
ByVal As System.Type _
) As System.Object
'Usage
Dim service As System.Type
Dim value As System.Object
value = RxApp.GetService(service)
public static System.object GetService(
System.Type
)
public function GetService(
: System.Type
): System.TObject; static;
public static function GetService(
: System.Type
) : System.Object;
public: static System.Object* GetService(
System.Type*
)
public:
static System.Object^ GetService(
System.Type^
)
Parameters
- service
- The type of service to retrieve.
Return Value
An instance of the service if it could be found, or null if it counld not.
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