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

SetCreateTime() public method

Set the create time of the file.
Set the create 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 createTime() method.

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

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