Search Results for

    Show / Hide Table of Contents

    Class ReaderBase

    Base implementation of the IReader interface

    Inheritance
    System.Object
    ReaderBase
    FeatureReaderBase
    Implements
    IReader
    System.IDisposable
    IRecord
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: OSGeo.MapGuide.MaestroAPI.Feature
    Assembly: OSGeo.MapGuide.MaestroAPI.dll
    Syntax
    public abstract class ReaderBase : IReader, IDisposable, IRecord

    Properties

    | Improve this Doc View Source

    Current

    Gets the current iterated record

    Declaration
    public IRecord Current { get; }
    Property Value
    Type Description
    IRecord
    | Improve this Doc View Source

    FieldCount

    Gets the number of fields in this record

    Declaration
    public int FieldCount { get; protected set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Item[Int32]

    Gets the System.Object at the specified index.

    Declaration
    public object this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    Item[String]

    Gets the System.Object with the specified name.

    Declaration
    public object this[string name] { get; }
    Parameters
    Type Name Description
    System.String name
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    ReaderType

    Gets the type of the reader.

    Declaration
    public abstract ReaderType ReaderType { get; }
    Property Value
    Type Description
    ReaderType

    The type of the reader.

    Methods

    | Improve this Doc View Source

    Close()

    Closes the object, freeing any resources it may be holding.

    Declaration
    public virtual void Close()
    | Improve this Doc View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Dispose of this instance

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | Improve this Doc View Source

    Finalize()

    Finalizer

    Declaration
    protected void Finalize()
    | Improve this Doc View Source

    GetBlob(Int32)

    Gets the blob value at the specified index

    Declaration
    public byte[] GetBlob(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GetBlob(String)

    Gets the blob value of the specified property

    Declaration
    public byte[] GetBlob(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GetBoolean(Int32)

    Gets the boolean value at the specified index

    Declaration
    public bool GetBoolean(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetBoolean(String)

    Gets the boolean value of the specified property

    Declaration
    public bool GetBoolean(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetByte(Int32)

    Gets the byte value at the specified index

    Declaration
    public byte GetByte(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Byte
    | Improve this Doc View Source

    GetByte(String)

    Gets the byte value of the specified property

    Declaration
    public byte GetByte(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Byte
    | Improve this Doc View Source

    GetClob(Int32)

    Gets the clob value at the specified index

    Declaration
    public char[] GetClob(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Char[]
    | Improve this Doc View Source

    GetClob(String)

    Gets the clob value of the specified property

    Declaration
    public char[] GetClob(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Char[]
    | Improve this Doc View Source

    GetDateTime(Int32)

    Gets the datetime value at the specified index

    Declaration
    public DateTime GetDateTime(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.DateTime
    | Improve this Doc View Source

    GetDateTime(String)

    Gets the datetime value of the specified property

    Declaration
    public DateTime GetDateTime(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.DateTime
    | Improve this Doc View Source

    GetDouble(Int32)

    Gets the double value at the specified index

    Declaration
    public double GetDouble(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    GetDouble(String)

    Gets the double value of the specified property

    Declaration
    public double GetDouble(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    GetFieldType(Int32)

    Gets the CLR type of the field at the specified index

    Declaration
    public abstract Type GetFieldType(int i)
    Parameters
    Type Name Description
    System.Int32 i
    Returns
    Type Description
    System.Type
    | Improve this Doc View Source

    GetGeometry(Int32)

    Gets the geometry value at the specified index

    Declaration
    public IGeometryRef GetGeometry(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    IGeometryRef
    | Improve this Doc View Source

    GetGeometry(String)

    Gets the geometry value of the specified property

    Declaration
    public IGeometryRef GetGeometry(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    IGeometryRef
    | Improve this Doc View Source

    GetInt16(Int32)

    Gets the int16 value at the specified index

    Declaration
    public short GetInt16(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    GetInt16(String)

    Gets the int16 value of the specified property

    Declaration
    public short GetInt16(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    GetInt32(Int32)

    Gets the int32 value at the specified index

    Declaration
    public int GetInt32(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetInt32(String)

    Gets the int32 value of the specified property

    Declaration
    public int GetInt32(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetInt64(Int32)

    Gets the int64 value at the specified index

    Declaration
    public long GetInt64(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    GetInt64(String)

    Gets the int64 value of the specified property

    Declaration
    public long GetInt64(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    GetName(Int32)

    Gets the name of the field at the specified index

    Declaration
    public abstract string GetName(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetPropertyType(Int32)

    Gets the type of the property at the specified index.

    Declaration
    public abstract PropertyValueType GetPropertyType(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    Returns
    Type Description
    PropertyValueType
    | Improve this Doc View Source

    GetPropertyType(String)

    Gets the type of the property.

    Declaration
    public abstract PropertyValueType GetPropertyType(string name)
    Parameters
    Type Name Description
    System.String name

    The name.

    Returns
    Type Description
    PropertyValueType
    | Improve this Doc View Source

    GetSingle(Int32)

    Gets the single value at the specified index

    Declaration
    public float GetSingle(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    GetSingle(String)

    Gets the single value of the specified property

    Declaration
    public float GetSingle(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    GetString(Int32)

    Gets the string value at the specified index

    Declaration
    public string GetString(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetString(String)

    Gets the string value of the specified property

    Declaration
    public string GetString(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    IsNull(Int32)

    Gets whether the property value at the specified index has a null property value. You must call this method first to determine if it is safe to call the corresponding GetXXX() methods

    Declaration
    public bool IsNull(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsNull(String)

    Gets whether the specified property name has a null property value

    Declaration
    public bool IsNull(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ReadNext()

    Advances the reader to the next item and determines whether there is another object to read.

    Declaration
    public bool ReadNext()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ReadNextRecord()

    Reads the next record.

    Declaration
    protected abstract IRecord ReadNextRecord()
    Returns
    Type Description
    IRecord

    Implements

    IReader
    System.IDisposable
    IRecord
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng