Info. To String Method
Returns the path as a string. Use the Name property for the full path.
public: override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
A string representing the path.
The string returned by the ToString method represents the path that was passed to the FileInfo constructor. Instead of calling the
ToString method, you should retrieve the value of either of the following properties, depending on your intent: