Click or drag to resize

PositionList Class

The class for representation in the form of list of positions, stored in external storage.
Inheritance Hierarchy
SystemObject
  BaseListExPosition
    RelationManyListPosition
      HierarchicalPageLoadListPosition
        StockSharp.Algo.StoragesBaseStorageEntityListPosition
          StockSharp.Algo.StoragesPositionList

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.14.0 (4.4.14)
Syntax
C#
public class PositionList : BaseStorageEntityList<Position>, 
	IStoragePositionList, IStorageEntityList<Position>, INotifyList<Position>, 
	IList<Position>, ICollection<Position>, IEnumerable<Position>, 
	IEnumerable, ISynchronizedCollection<Position>, ISynchronizedCollection

The PositionList type exposes the following members.

Constructors
  NameDescription
Public methodPositionList
Initializes a new instance of the PositionList.
Top
Properties
  NameDescription
Public propertyBufferSize (Inherited from RelationManyListPosition.)
Public propertyBulkLoad (Inherited from RelationManyListPosition.)
Public propertyCacheCount (Inherited from RelationManyListPosition.)
Public propertyClearQuery (Inherited from HierarchicalPageLoadListPosition.)
Public propertyCount (Inherited from RelationManyListPosition.)
Public propertyCountQuery (Inherited from HierarchicalPageLoadListPosition.)
Public propertyCreateQuery (Inherited from HierarchicalPageLoadListPosition.)
Protected propertyDatabase (Inherited from HierarchicalPageLoadListPosition.)
Public propertyDelayAction (Inherited from RelationManyListPosition.)
Public propertyIsReadOnly (Inherited from BaseListExPosition.)
Public propertyItem (Inherited from RelationManyListPosition.)
Public propertyItem (Inherited from RelationManyListPosition.)
Public propertyMorph (Inherited from HierarchicalPageLoadListPosition.)
Public propertyOverrideCreateDelete (Inherited from HierarchicalPageLoadListPosition.)
Public propertyReadAllQuery (Inherited from HierarchicalPageLoadListPosition.)
Public propertyReadByIdQuery (Inherited from HierarchicalPageLoadListPosition.)
Public propertyRecycle (Inherited from HierarchicalPageLoadListPosition.)
Public propertyRemoveQuery (Inherited from HierarchicalPageLoadListPosition.)
Public propertyStorage (Inherited from RelationManyListPosition.)
Public propertySyncRoot
The object of synchronization.
(Inherited from BaseStorageEntityListT.)
Protected propertyTimeField
The time designating field.
(Inherited from BaseStorageEntityListT.)
Public propertyUpdateQuery (Inherited from HierarchicalPageLoadListPosition.)
Top
Methods
  NameDescription
Public methodAdd
To add the trading object to the collection.
(Inherited from BaseStorageEntityListT.)
Protected methodAddFilter(TupleString, Object) (Inherited from HierarchicalPageLoadListPosition.)
Protected methodAddFilter(String, Object) (Inherited from HierarchicalPageLoadListPosition.)
Protected methodAddFilter(Field, Object, FuncObject) (Inherited from HierarchicalPageLoadListPosition.)
Public methodAddRange
To add items.
(Inherited from BaseStorageEntityListT.)
Public methodClear (Inherited from RelationManyListPosition.)
Public methodContains (Inherited from RelationManyListPosition.)
Public methodCopyTo (Inherited from RelationManyListPosition.)
Protected methodCreateScope (Inherited from HierarchicalPageLoadListPosition.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExecuteNonQuery (Inherited from HierarchicalPageLoadListPosition.)
Protected methodExecuteRow (Inherited from HierarchicalPageLoadListPosition.)
Protected methodExecuteScalar``1 (Inherited from HierarchicalPageLoadListPosition.)
Protected methodExecuteTable (Inherited from HierarchicalPageLoadListPosition.)
Protected methodFillSource (Inherited from HierarchicalPageLoadListPosition.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetCommand (Inherited from HierarchicalPageLoadListPosition.)
Public methodGetEnumerator (Inherited from RelationManyListPosition.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetOverridedAddSource
To get data from essence for creation.
(Overrides HierarchicalPageLoadList.GetOverridedAddSource(UTP).)
Protected methodGetOverridedRemoveAllSource (Inherited from HierarchicalPageLoadListPosition.)
Protected methodGetOverridedRemoveSource
To get data from essence for deletion.
(Overrides HierarchicalPageLoadList.GetOverridedRemoveSource(UTP).)
Public methodGetRange (Inherited from RelationManyListPosition.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from RelationManyListPosition.)
Public methodInsert (Inherited from RelationManyListPosition.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAdd
It is called when adding element to the storage.
(Inherited from BaseStorageEntityListT.)
Protected methodOnClear
It is called at deleting all elements in the storage.
(Inherited from BaseStorageEntityListT.)
Protected methodOnGet (Inherited from RelationManyListPosition.)
Protected methodOnGetCount
It is called at getting number of elements in the storage.
(Inherited from BaseStorageEntityListT.)
Protected methodOnGetGroup
It is called at selection elements from the storage.
(Inherited from BaseStorageEntityListT.)
Protected methodOnRemove
It is called when deleting element from the storage.
(Inherited from BaseStorageEntityListT.)
Protected methodOnUpdate
It is called at renewal element in the storage.
(Inherited from BaseStorageEntityListT.)
Public methodRead(SerializationItem) (Inherited from RelationManyListPosition.)
Public methodRead(SerializationItemCollection) (Inherited from RelationManyListPosition.)
Protected methodRead(Field, Object) (Inherited from HierarchicalPageLoadListPosition.)
Protected methodRead(String, String, SerializationItemCollection) (Inherited from HierarchicalPageLoadListPosition.)
Protected methodReadAll(String, String, SerializationItemCollection) (Inherited from HierarchicalPageLoadListPosition.)
Public methodReadAll(Int64, Int64, Field, ListSortDirection) (Inherited from RelationManyListPosition.)
Protected methodReadAll(String, String, Int64, Int64, SerializationItemCollection) (Inherited from HierarchicalPageLoadListPosition.)
Protected methodReadBy (Inherited from HierarchicalPageLoadListPosition.)
Public methodReadById (Inherited from RelationManyListPosition.)
Public methodReadBySecurityAndPortfolio
To load the position.
Public methodReadFirsts (Inherited from RelationManyListPosition.)
Public methodReadLasts(Int32)
To load last created data.
(Inherited from BaseStorageEntityListT.)
Public methodReadLasts(Int64, Field) (Inherited from RelationManyListPosition.)
Public methodRemove
To delete the trading object from the collection.
(Inherited from BaseStorageEntityListT.)
Public methodRemoveAt (Inherited from RelationManyListPosition.)
Public methodRemoveById (Inherited from RelationManyListPosition.)
Public methodRemoveRange(IEnumerableT)
To delete elements.
(Inherited from BaseStorageEntityListT.)
Public methodRemoveRange(Int32, Int32)
To delete elements.
(Inherited from BaseStorageEntityListT.)
Public methodResetCache (Inherited from RelationManyListPosition.)
Public methodSave
To save the trading object.
(Overrides BaseStorageEntityListTSave(T).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate (Inherited from RelationManyListPosition.)
Top
Events
  NameDescription
Public eventAdded (Inherited from RelationManyListPosition.)
Public eventAdding (Inherited from RelationManyListPosition.)
Public eventChanged (Inherited from RelationManyListPosition.)
Public eventCleared (Inherited from RelationManyListPosition.)
Public eventClearing (Inherited from RelationManyListPosition.)
Public eventInserted (Inherited from RelationManyListPosition.)
Public eventInserting (Inherited from RelationManyListPosition.)
Public eventRemoved (Inherited from RelationManyListPosition.)
Public eventRemoving (Inherited from RelationManyListPosition.)
Top
Extension Methods
  NameDescription
Public Extension MethodFilter(Portfolio)Overloaded.
To filter positions for the given portfolio.
(Defined by TraderHelper.)
Public Extension MethodFilter(Security)Overloaded.
To filter positions for the given instrument.
(Defined by TraderHelper.)
Public Extension MethodToMessagesPosition, TMessage
To convert trading objects into messages.
(Defined by MessageConverterHelper.)
Top
See Also