| ConfigGetTimeSpan Method |
Retrieves a
TimeSpan value from the specified path in the configuration.
Namespace:
Akka.Configuration
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public virtual TimeSpan GetTimeSpan(
string path,
Nullable<TimeSpan> default = null,
bool allowInfinite = true
)
abstract GetTimeSpan :
path : string *
?default : Nullable<TimeSpan> *
?allowInfinite : bool
(* Defaults:
let _default = defaultArg default null
let _allowInfinite = defaultArg allowInfinite true
*)
-> TimeSpan
override GetTimeSpan :
path : string *
?default : Nullable<TimeSpan> *
?allowInfinite : bool
(* Defaults:
let _default = defaultArg default null
let _allowInfinite = defaultArg allowInfinite true
*)
-> TimeSpan
Parameters
- path
- Type: SystemString
The path that contains the value to retrieve. - default (Optional)
- Type: SystemNullableTimeSpan
The default value to return if the value doesn't exist. - allowInfinite (Optional)
- Type: SystemBoolean
true if infinite timespans are allowed; otherwise false.
Return Value
Type:
TimeSpanThe
TimeSpan value defined in the specified path.
Exceptions See Also