Class LimitingFeatureReader
Wraps a IFeatureReader to only allow up the specified number of iterations
Inheritance
System.Object
LimitingFeatureReader
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<
IFeature>
System.Collections.IEnumerable
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()
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class LimitingFeatureReader : IFeatureReader, IReader, IDisposable, IFeature, IRecord, IEnumerable<IFeature>, IEnumerable
Constructors
|
Improve this Doc
View Source
LimitingFeatureReader(IFeatureReader, Int32)
Declaration
public LimitingFeatureReader(IFeatureReader reader, int limit)
Parameters
Properties
|
Improve this Doc
View Source
ClassDefinition
Gets the class definition of the object currently being read. If the user has requested
only a subset of the class properties (as specified in the filter text), the class
definition reflects what the user has requested, rather than the full class definition.
Declaration
public ClassDefinition ClassDefinition { get; }
Property Value
|
Improve this Doc
View Source
FieldCount
Gets the number of fields in this record
Declaration
public int FieldCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Item[Int32]
Gets the 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 object value for the specified property
Declaration
public object this[string name] { get; }
Parameters
Type |
Name |
Description |
System.String |
name |
|
Property Value
Type |
Description |
System.Object |
|
Methods
|
Improve this Doc
View Source
Close()
Closes the object, freeing any resources it may be holding.
Declaration
|
Improve this Doc
View Source
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
Declaration
|
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
GetEnumerator()
Returns an enumerator that iterates through the collection
Declaration
public IEnumerator<IFeature> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<IFeature> |
|
|
Improve this Doc
View Source
GetFeatureObject(Int32)
Gets a IFeatureReader containing
all the nested features at the specified index
Declaration
public IFeatureReader GetFeatureObject(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetFeatureObject(String)
Gets a IFeatureReader containing
all the nested features of the specified property
Declaration
public IFeatureReader GetFeatureObject(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
|
Improve this Doc
View Source
GetFieldType(Int32)
Gets the CLR type of the field at the specified index
Declaration
public 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
|
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
|
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 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 PropertyValueType GetPropertyType(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetPropertyType(String)
Gets the type of the property.
Declaration
public PropertyValueType GetPropertyType(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
|
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
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable