VeriStand .NET API Reference

Table of Contents

CustomDeviceSection.AddCustomDeviceChannelIfNotFound Method

Adds a custom device channel with the name and guid you specify to the current section, if the channel does not already exist under the section. If the channel you specify already exists, this method takes no action and returns a reference to the existing channel.

Namespace: NationalInstruments.VeriStand.SystemDefinitionAPI
Assembly: NationalInstruments.VeriStand.SystemDefinitionAPI (in NationalInstruments.VeriStand.SystemDefinitionAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
Visual Basic (Declaration)
Public Function AddCustomDeviceChannelIfNotFound ( _
	name As String, _
	guid As String, _
	<OutAttribute> ByRef newItem As Boolean _
) As CustomDeviceChannel
C#
public CustomDeviceChannel AddCustomDeviceChannelIfNotFound(
	string name,
	string guid,
	out bool newItem
)
Visual C++
public:
CustomDeviceChannel^ AddCustomDeviceChannelIfNotFound(
	String^ name, 
	String^ guid, 
	[OutAttribute] bool% newItem
)

Parameters

name
Type: System.String
The name associated with the channel, as specified in the Custom Device XML file.
guid
Type: System.String
The GUID associated with the channel, as specified in the Custom Device XML file.
newItem
Type: System.Boolean %
Returns true (True in Visual Basic) if the channel was added.

Return Value

The CustomDeviceChannel reference for the channel specified by name and guid.

See Also

Log in to get a better experience