asp.net.ph

DateTime.AddTicks Method

System Namespace   DateTime Structure


Adds the specified number of ticks to the value of this instance.

[ VB ]
<Serializable>
Public Function AddTicks ( _
   ByVal value As Long _
} As DateTime

[ C# ]
[ Serializable ]
public DateTime AddTicks (
   long value
};

[ C++ ]
[ Serializable ]
public: DateTime AddTicks (
   __int64 value
};

[ JScript ]
public Serializable
function AddTicks (
   value : long
} : DateTime;

Parameters

value
A number of 100-nanosecond ticks. The value parameter can be positive or negative.

Return Value

A DateTime whose value is the sum of the date and time represented by this instance and the time represented by value.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException The resulting DateTime is less than MinValue or greater than MaxValue.

Remarks

This method does not change the value of this DateTime. Instead, a new DateTime is returned whose value is the result of this operation.

See Also

DateTime Members   Int64   Ticks Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph