Send feedback on this topic.
Teradata.Client.Provider
Values Property (TdQueryBand)
Example 



Teradata.Client.Provider Namespace > TdQueryBand Class : Values Property
Gets an Collections.ICollection that contains the values for each of the corresponding Query Band keys.
Syntax
'Declaration
 
Public ReadOnly Property Values As ICollection
'Usage
 
Dim instance As TdQueryBand
Dim value As ICollection
 
value = instance.Values
public ICollection Values {get;}
public:
property ICollection^ Values {
   ICollection^ get();
}
Remarks
The values in the ValueCollection will appear in the same order as the Query Band keys will appear in the KeyCollection of names returned from TdQueryBand.Keys.
Example

The following is an example on how to retrieve the values using this property. The output of this example is as follows:

Value = cust1
Value = clothing
Value = store2
Value = 2008-10-20T12:08:10.000000Z

public void ValueExample()
{
    TdQueryBand queryBand = new TdQueryBand();
    queryBand.QueryBandStmt = "Custom1 = cust1; Group = clothing; Source = store2";
    
    // The UTC offset has been accounted for in the time
    queryBand.Deadline = new DateTimeOffset.Parse("2008-10-20 12:08:10");
    
    foreach (Object tempObject in queryBand.Values)
    {
        Console.WriteLine("Value = {0}", Convert.ToString(tempObject));
    }
}
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdQueryBand Class
TdQueryBand Members
ValueCollection