GetService Method

NI Signal Generators Help (NI-FGEN 18.1)

Edition Date: April 2018

Part Number: 370524V-01

»View Product Info
Download Help (Windows Only)

NIFgen Class See Also


Gets the service object of the specified type.

Namespace: NationalInstruments.ModularInstruments.NIFgen

Assembly: NationalInstruments.ModularInstruments.NIFgen.Fx40 (in NationalInstruments.ModularInstruments.NIFgen.Fx40.dll) Version: 18.1.0.4 (18.1.0.4)

Syntax

Visual Basic (Declaration)
Public Function GetService ( _
	serviceType As Type _
) As Object

C#
public Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System..::.Type
An object that specifies the Type of the object.

Return Value

A service object of type serviceType or null (Nothing in Visual Basic) if there is no service object of type serviceType.

Implements

IServiceProvider..::.GetService(Type)

Exceptions

ExceptionCondition
ObjectDisposedException GetService was called after the associated NIFgen object was disposed.

See Also

Reference

NIFgen Class

NationalInstruments.ModularInstruments.NIFgen Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful