NI-RFPM API Reference

Table of Contents

NIRfpmSwitch.GetService Method

  • Updated2023-12-28
  • 1 minute(s) read
NIRfpmSwitch.GetService Method

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: Object
An object on the basis of the type mentioned in the serviceType parameter.

Implements

IServiceProviderGetService(Type)

Exceptions

ExceptionCondition
ObjectDisposedExceptionGetService(Type) was called after the associated NIRfpmSwitch object was disposed.

See Also

Log in to get a better experience