NetHelper.GetValidPort Method

HD.Common

NetHelperGetValidPort Method Helper帮助文档
检查设置的端口号是否正确,并返回正确的端口号,无效端口号返回-1。

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int GetValidPort(
	string port
)
Public Shared Function GetValidPort ( 
	port As String
) As Integer
public:
static int GetValidPort(
	String^ port
)
static member GetValidPort : 
        port : string -> int 

Parameters

port
Type: SystemString
设置的端口号

Return Value

Type: Int32

[Missing <returns> documentation for "M:HD.Common.NetHelper.GetValidPort(System.String)"]

See Also

Reference