
'Declaration Public NotInheritable Class TdErrorCollection Implements System.Collections.ICollection, System.Collections.IEnumerable
'Usage Dim instance As TdErrorCollection
public sealed class TdErrorCollection : System.Collections.ICollection, System.Collections.IEnumerable
public ref class TdErrorCollection sealed : public System.Collections.ICollection, System.Collections.IEnumerable
TdException.TdException.Errors property is an instance of the TdErrorCollection class and holds at least one instance of the TdError class.
TdInfoMessageEventArgs.TdInfoMessageEventArgs.Errors property is an instance of TdErrorCollecation class and holds at least zero or more instances of the TdError class.
public TdConnection OpenConnection(String connectionString) { try { TdConnection cn = new TdConnection(connectionString); cn.Open(); return cn; } catch(TdException e) { for (int index = 0; index < e.Errors.Count; index++) { Console.WriteLine(“ERROR: {0} ({1})”, e.Errors[index].Message, e.Errors[index].Number); } throw; } return null; }
System.Object
Teradata.Client.Provider.TdErrorCollection
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019