NET SFTP Library
SetPermissions Method






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : SetPermissions Method
Set file or directory permissions. It must be in the same format as the permissions string in the FileInfo
Syntax
'Declaration
 
Public Sub SetPermissions( _
   ByVal fileOrDirectoryName As System.String, _
   ByVal permissionsString As System.String _
) 
'Usage
 
Dim instance As SFTP
Dim fileOrDirectoryName As System.String
Dim permissionsString As System.String
 
instance.SetPermissions(fileOrDirectoryName, permissionsString)
public void SetPermissions( 
   System.string fileOrDirectoryName,
   System.string permissionsString
)
public procedure SetPermissions( 
    fileOrDirectoryName: System.String;
    permissionsString: System.String
); 
public function SetPermissions( 
   fileOrDirectoryName : System.String,
   permissionsString : System.String
);
public: void SetPermissions( 
   System.string* fileOrDirectoryName,
   System.string* permissionsString
) 
public:
void SetPermissions( 
   System.String^ fileOrDirectoryName,
   System.String^ permissionsString
) 

Parameters

fileOrDirectoryName
permissionsString
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SFTP Class
SFTP Members