Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function FromTicks ( _
val As Long _
) As TimeSpan
public static TimeSpan FromTicks(
long val
)
public:
static TimeSpan FromTicks(
long long val
)
static member FromTicks :
val:int64 -> TimeSpan
public static function FromTicks(
val : long
) : TimeSpan
Parameters
- val
Type: System. . :: . .Int64
A number of ticks that represent a time.
Return Value
Type: System. . :: . .TimeSpan
An object that represents val.
Remarks
This is a convenience method with the same behavior as the TimeSpan..::..TimeSpan(Int64) constructor.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.