Click or drag to resize

TraderHelperSafeGetOrderId Method

To get order identifier, or discard exception, if no information available.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static long SafeGetOrderId(
	this ExecutionMessage message
)

Parameters

message
Type: StockSharp.MessagesExecutionMessage
Operations.

Return Value

Type: Int64
Order ID.

Usage Note

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