GetTagNames Method
- Last UpdatedAug 21, 2026
- 1 minute read
Retrieve the tag names from the established query context.
'Declaration
Public Function GetTagNames( _
ByVal startIndex As UInteger, _
ByVal tagCount As UInteger, _
ByRef tagNames As StringCollection, _
ByRef error As HistorianAccessError _
) As Boolean
'Usage
Dim instance As TagQuery
Dim startIndex As UInteger
Dim tagCount As UInteger
Dim tagNames As StringCollection
Dim error As HistorianAccessError
Dim value As Boolean
value = instance.GetTagNames(startIndex, tagCount, tagNames, error)
public bool GetTagNames(
uint startIndex,
uint tagCount,
out StringCollection tagNames,
out HistorianAccessError error
)
public:
bool GetTagNames(
uint startIndex,
uint tagCount,
[Out] StringCollection^ tagNames,
[Out] HistorianAccessError^ error
)
Parameters
- startIndex
- Contains the starting index of the tag names to be retrieved.
- tagCount
- Contains the number of tag names to be retrieved.
- tagNames
- Contains the collection of tag names returned.
- error
- Contains the error information in case of failure.
Return Value
Returns True if tag names are retrieved successfully, or False otherwise.