Info. To String Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: