PropertyObject.ValidateNewElementName

Syntax

PropertyObject.ValidateNewElementName( newName, allowDuplicates, isValid)

Return Value

String

Returns an explanation of why the name is not valid.

Purpose

Determines if the specified name is valid for a new element of the PropertyObject.

Remarks

This method is valid only for arrays of containers or arrays of named types. Call this method before adding a new element to determine whether the name of the new element is valid.

Parameters

newName As String

[In] Specifies the new name to validate.

allowDuplicates As Boolean

[In] In addition to validating the name, also checks if the name is already in use. Typically, you pass True to this parameter because array elements are allowed to have duplicate names.

isValid As Boolean

[Out] Returns True if the new name is valid.

See Also

PropertyObject.Name

PropertyObject.ValidateNewName

PropertyObject.ValidateNewSubPropertyName

Thread Safety of the PropertyObject API and TestStand Variables

TypeUsageList.ValidateNewTypeName