GetService Method

NI-VisaNS .NET Class Library Help for Visual Studio 2010

Edition Date: August 2012

Part Number: 370627F-01

»View Product Info
Download Help (Windows Only)

VxiSession Class See Also


Returns an object that represents a service provided by the VxiSession.

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 13.0.40.167

Syntax

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

C#
public Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type
A service provided by the VxiSession.

Return Value

An Object that represents a service provided by the VxiSession. This value is null (Nothing in Visual Basic) if the VxiSession does not provide the specified service.

Implements

IServiceProvider.GetService(Type)

Exceptions

ExceptionCondition
ObjectDisposedException This member is called after the Dispose method is called directly from code or indirectly through a finalizer.

See Also

Reference

VxiSession Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful