'Usage Dim instance As TdQueryBand Dim key As String Dim value As Object instance.Add(key, value)
Parameters
- key
- The name of the Query Band.
- value
- The value of the Query Band.
'Usage Dim instance As TdQueryBand Dim key As String Dim value As Object instance.Add(key, value)
Exception | Description |
---|---|
System.ArgumentNullException | A null has been passed in as the key. |
System.ArgumentException | A Query Band that contains the same key already exists or the key is String.Empty. |
When this method is called to add a Query Band, the following task is performed based upon the scenario:
Scenario: key does not exist.
Task: the key=value pair will be added to this instance.
Scenario: key exists and value is not null.
Task: An ArgumentException will get thrown.
Scenario: key exists and value is null.
Task: An ArgumentException will get thrown.
Product | Versions | Platforms |
---|---|---|
.NET | 6, 7 | Windows, Linux, MacOS |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |