Method ToString ToString() Converts the port data into a string. Declaration public override string ToString() Returns Type Description string The string if the port is connected. Otherwise, returns null. Overrides object.ToString()