Navigation:  Advantage .NET Data Provider > AdsExtendedReader Class > AdsExtendedReader Properties >

AdsExtendedReader.Item

Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Gets or sets the value of the specified column in its native format given the column name or number.

public object this[ string name ] {get; set;}

public object this[ int i ] {get; set;}

Remarks

In C#, this property is the indexer for the AdsExtendedReader class. The column name or the zero-based column ordinal can be used to retrieve or set the value.

Example

AdsConnection conn = new AdsConnection( "data source=c:\\data;" );

 

conn.Open();

AdsCommand cmd = new AdsCommand( "select * from departments", conn );

AdsExtendedReader r = cmd.ExecuteExtendedReader( CommandBehavior.CloseConnection );

 

r.Read();

Console.WriteLine( "Current value is {0}", r["department code"] );

r["department code"] = 88;

r.Close();

 

See Also

AdsDataReader.GetValue

AdsExtendedReader.SetValue