'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.
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019