NIRfpmSwitch.GetService Method
- Updated2023-12-28
- 1 minute(s) read
NIRfpmSwitchGetService Method
Returns a service object on the basis of the type mentioned in the serviceType parameter.
Namespace: NationalInstruments.ModularInstruments.NIRfpmSwitch
Assembly: NationalInstruments.ModularInstruments.NIRfpmSwitch.Fx40 (in NationalInstruments.ModularInstruments.NIRfpmSwitch.Fx40.dll) Version: 2023
Syntax
public Object GetService( Type serviceType )
Public Function GetService ( serviceType As Type ) As Object
Parameters
- serviceType
- Type: SystemType
The type of the object to be retrieved.
Return Value
Type: ObjectAn object on the basis of the type mentioned in the serviceType parameter.
Implements
IServiceProviderGetService(Type)Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | GetService(Type) was called after the associated NIRfpmSwitch object was disposed. |