VeriStand .NET API Reference

CustomDeviceSection.AddCustomDeviceSectionIfNotFound Method

Adds a custom device subsection with the name and guid you specify to the current section, if the subsection does not already exist under the section. If the subsection does exist, this method does nothing.

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 AddCustomDeviceSectionIfNotFound ( _
	name As String, _
	guid As String, _
	<OutAttribute> ByRef newItem As Boolean _
) As CustomDeviceSection
C#
public CustomDeviceSection AddCustomDeviceSectionIfNotFound(
	string name,
	string guid,
	out bool newItem
)
Visual C++
public:
CustomDeviceSection^ AddCustomDeviceSectionIfNotFound(
	String^ name, 
	String^ guid, 
	[OutAttribute] bool% newItem
)

Parameters

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

Return Value

The CustomDeviceSection reference for the added section.

See Also

Log in to get a better experience