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



Teradata.Client.Provider Namespace > TdQueryBand Class : Keys Property
Gets a Collections.ICollection that contains the Query Band keys.
Syntax
'Declaration
 
Public ReadOnly Property Keys As ICollection
'Usage
 
Dim instance As TdQueryBand
Dim value As ICollection
 
value = instance.Keys
public ICollection Keys {get;}
public:
property ICollection^ Keys {
   ICollection^ get();
}
Remarks

The keys in the ICollection appear in the same order as their corresponding values returned from the TdQueryBand.Values property.

Example

The following is an example on how to retrieve the keys using this property, and will have the following output:

Key = Custom1
Key = Group
Key = Source

public void KeyExample()
{
    TdQueryBand queryBand = new TdQueryBand();
    queryBand.QueryBand = "Custom1 = cust1; Group = clothing; Source = store2";
    
    foreach (String temp in queryBand.Keys)
    {
        Console.WriteLine("Key = {0}", temp);
    }
}
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdQueryBand Class
TdQueryBand Members
KeyCollection