ExtensionMethodsToString Method |
Converts SerialCommPort to string.
If you use custom port name, use SerialPort.SerialCommPortToString(SerialCommPort port) instead.
Namespace: ZylSoft.SerialAssembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.86.9206.30146
Syntaxpublic static string ToString(
this SerialCommPort port
)
<ExtensionAttribute>
Public Shared Function ToString (
port As SerialCommPort
) As String
public:
[ExtensionAttribute]
static String^ ToString(
SerialCommPort port
)
[<ExtensionAttribute>]
static member ToString :
port : SerialCommPort -> string /** @attribute ExtensionAttribute */
public static String ToString(
SerialCommPort port
)
public static function ToString(
port : SerialCommPort
) : String
ZylSoft.Serial.ExtensionMethods.ToString = function(port);
STATIC METHOD ToString(
SELF port AS SerialCommPort
) AS STRING
No code example is currently available or this language may not be supported.
Parameters
- port SerialCommPort
-
SerialCommPort value.
Return Value
String
String representation of the port.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SerialCommPort. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also