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.
Namespace:
DHI.Mike1D.ResultDataAccess
Assembly:
DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public static void InitializeTimeData(
this IResultData resultData,
int timestepCapacity = -1
)
<ExtensionAttribute>
Public Shared Sub InitializeTimeData (
resultData As IResultData,
Optional timestepCapacity As Integer = -1
)
public:
[ExtensionAttribute]
static void InitializeTimeData(
IResultData^ resultData,
int timestepCapacity = -1
)
Parameters
- resultData
- Type: DHI.Mike1D.ResultDataAccessIResultData
Result data object to add time data to - timestepCapacity (Optional)
- Type: SystemInt32
Number of time steps to pre-allocate data for. Set to 0 if unknown up front
Return Value
Type:
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