Java.IO.File.SetLastModified Method
Sets the time this file was last modified, measured in milliseconds since January 1st, 1970, midnight.

Syntax

[Android.Runtime.Register("setLastModified", "(J)Z", "GetSetLastModified_JHandler")]
public virtual bool SetLastModified (long time)

Parameters

time
the last modification time for this file.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif time .

Remarks

Sets the time this file was last modified, measured in milliseconds since January 1st, 1970, midnight.

Note that this method does not throw IOException on failure. Callers must check the return value.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1