SharpCifs.Smb.SmbFile.SetLastModified C# (CSharp) Method

SetLastModified() public method

Set the last modified time of the file.
Set the last modified time of the file. The time is specified as milliseconds from Jan 1, 1970 which is the same as that which is returned by the lastModified(), getLastModified(), and getDate() methods.

This method does not apply to workgroups, servers, or shares.

public SetLastModified ( long time ) : void
time long the last modified time as milliseconds since Jan 1, 1970
return void
        public virtual void SetLastModified(long time)
        {
            if (GetUncPath0().Length == 1)
            {
                throw new SmbException("Invalid operation for workgroups, servers, or shares");
            }
            SetPathInformation(0, 0L, time);
        }