Click or drag to resize

StorageHelperDelete Method

To delete market data from the storage for the specified time period.

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static void Delete(
	this IMarketDataStorage storage,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null
)

Parameters

storage
Type: StockSharp.Algo.StoragesIMarketDataStorage
Market-data storage.
from (Optional)
Type: SystemNullableDateTimeOffset
The start time for data deleting. If the value is not specified, the data will be deleted starting from the date GetFromDate(IMarketDataStorage).
to (Optional)
Type: SystemNullableDateTimeOffset
The end time, up to which the data shall be deleted. If the value is not specified, data will be deleted up to the end date GetToDate(IMarketDataStorage), inclusive.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMarketDataStorage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also