Differences

This shows you the differences between the selected revisions of the page.

library_session_getfileinfo 2011-12-29 library_session_getfileinfo 2022-05-18 (current)
Line 3: Line 3:
===== Syntax ===== ===== Syntax =====
-<code>+<code csharp *>
public RemoteFileInfo GetFileInfo(string path) public RemoteFileInfo GetFileInfo(string path)
 +</code>
 +
 +<code vbnet *>
 +Public Function GetFileInfo(path As String) As RemoteFileInfo
</code> </code>
Line 17: Line 21:
^ Exception ^ Condition ^ ^ Exception ^ Condition ^
| InvalidOperationException | Session is not opened. | | InvalidOperationException | Session is not opened. |
-| SessionException | Error communicating with ''[[executables#winscp.com|winscp.com]]''. \\ Session has failed. \\ Retrieving information has failed. |+| [[library_sessionlocalexception|SessionLocalException]] | Error communicating with ''[[executables#winscp.com|winscp.com]]''. \\ See the exception documentation for details. | 
 +| [[library_sessionremoteexception|SessionRemoteException]] | Session has failed. \\ Retrieving information has failed. \\ See the exception documentation for details. |
| TimeoutException | Timeout waiting for ''winscp.com'' to respond. | | TimeoutException | Timeout waiting for ''winscp.com'' to respond. |
-~~NOTOC~~+===== [[remarks]] Remarks ===== 
 +For an alternative interface, see [[library_session_trygetfileinfo|''Session.TryGetFileInfo'']]. 
 + 
 +===== Examples ===== 
 + 
 +==== Real-Life Example ==== 
 + 
 +  * [[library_example_find_duplicate_files|*]].

Last modified: by martin