ResultDataExtensionsInitializeTimeData Method

Initialize all data items with default time-data objects. This can be used when storing data for many time steps in a result data object, typically when reading.

Definition

Namespace: DHI.Mike1D.ResultDataAccess
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static void InitializeTimeData(
	this IResultData resultData,
	int timestepCapacity = -1
)

Parameters

resultData  IResultData
Result data object to add time data to
timestepCapacity  Int32  (Optional)
Number of time steps to pre-allocate data for. Set to 0 if unknown up front

Return Value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IResultData. 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