Renci.SshNet.Sftp.SftpFile.UpdateStatus C# (CSharp) Method

UpdateStatus() public method

Updates file status on the server.
public UpdateStatus ( ) : void
return void
        public void UpdateStatus()
        {
            _sftpSession.RequestSetStat(FullName, Attributes);
        }

Usage Example

コード例 #1
0
ファイル: SftpFileTest.cs プロジェクト: pecegit/sshnet
 public void UpdateStatusTest()
 {
     SftpSession sftpSession = null; // TODO: Initialize to an appropriate value
     string fullName = string.Empty; // TODO: Initialize to an appropriate value
     SftpFileAttributes attributes = null; // TODO: Initialize to an appropriate value
     SftpFile target = new SftpFile(sftpSession, fullName, attributes); // TODO: Initialize to an appropriate value
     target.UpdateStatus();
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }