vb System.IO.Ports.Handshake类(方法)实例源码

下面列出了vb System.IO.Ports.Handshake 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.IO.Port   
Public Shared Function SetPortHandshake(defaultPortHandshake As Handshake) As Handshake
    Dim handshake As String

    Console.WriteLine("Available Handshake options:")
    For Each s As String In [Enum].GetNames(GetType(Handshake))
        Console.WriteLine("   {0}", s)
    Next

    Console.Write("Enter Handshake value (Default: {0}):", defaultPortHandshake.ToString())
    handshake = Console.ReadLine()

    If handshake = "" Then
        handshake = defaultPortHandshake.ToString()
    End If

    Return CType([Enum].Parse(GetType(Handshake), handshake, True), Handshake)
End Function


问题


面经


文章

微信
公众号

扫码关注公众号