Builder. To String Method
Returns the display string for the specified UriBuilder instance.
public: override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
The string that contains the unescaped display string of the UriBuilder.
The display string contains the Port property value if the Port property was set or the port was specified when the UriBuilder was constructed using of the UriBuilder methods that accept a port number parameter except for the case when the Port.property value was set to a value of -1 to indicate the default port.
The display string does not contain the Port property value if the Port property was not set and a port was not specified when the UriBuilder was constructed. The display string also does not contain the Port property value if the Port property or port number for the constructor was set to a value of -1.