SharpCifs.Smb.SmbFile.CreateNewFile C# (CSharp) Метод

CreateNewFile() публичный Метод

Create a new file but fail if it already exists.
Create a new file but fail if it already exists. The check for existance of the file and it's creation are an atomic operation with respect to other filesystem activities.
public CreateNewFile ( ) : void
Результат void
        public virtual void CreateNewFile()
        {
            if (GetUncPath0().Length == 1)
            {
                throw new SmbException("Invalid operation for workgroups, servers, or shares");
            }
            Close(Open0(ORdwr | OCreat | OExcl, 0, AttrNormal, 0), 0L);
        }