Dart.Ftp Namespace > ListEntry Class : ToString Method |
Public Overrides Function ToString() As String
public override string ToString()
public: String^ ToString(); override
Listings are automatically parsed for most common fields. However, many servers have proprietary fields. In cases such as this, for listing fields not contained within the ListEntry object, the raw listing can be retrieved using this property, and parsed.
The ListEntry.Text property is useful for diagnostics purposes, to see a raw ListEntry. It is also useful for dealing with servers that return a "proprietary" listing. For example, if the server may return a UNIX listing. This would look something like:
r-xr-xr-x 1 owner group 20 Jan 10 2002 file1.txt
It also may return a DOS listing which would look something like:
01-10-02 10:18AM 20 file1.txt
In either of these cases, the format would be detected and Listing.Format would be set appropriately. However, if the listing returned was a proprietary listing such as:
file1.txt Jan-10-2002 20
The Ftp component would be unable to detect the type. You would have to get the raw text using the ListEntry.Text property, and maually parse it.