ArcFM Engine Developer Guide
GetService<TService>() Method


Type of the service to retrieve
Gets the requested Service
Syntax
'Declaration
 
Public Overloads Shared Function GetService(Of TService)() As TService
'Usage
 
Dim value As TService
 
value = RxApp.GetService(Of TService)()
public static TService GetService<TService>()

Type Parameters

TService
Type of the service to retrieve

Return Value

An instance of the service if it could be found
Exceptions
ExceptionDescription
WrongThreadException A WrongThreadException will be thrown if attempting to retrieve a COM service type from an MTA thread.
System.ExceptionWill be thrown if no serice of this type has been found
Remarks
Generic version of GetService(Type)
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

RxApp Class
RxApp Members
Overload List

 

 


Send Comment