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

SetAttributes() public method

Set the attributes of this file.
Set the attributes of this file. Attributes are composed into a bitset by bitwise ORing the ATTR_* constants. Setting the value returned by getAttributes will result in both files having the same attributes.
SmbException
public SetAttributes ( int attrs ) : void
attrs int
return void
        public virtual void SetAttributes(int attrs)
        {
            if (GetUncPath0().Length == 1)
            {
                throw new SmbException("Invalid operation for workgroups, servers, or shares");
            }
            SetPathInformation(attrs & AttrSetMask, 0L, 0L);
        }