getPortNumber Method (SQLServerDataSource)
Returns the current port number that is used to communicate with SQL Server.
Syntax
public int getPortNumber()
Return Value
An int value that contains the current port number.
Remarks
The port number is the TCP/IP port number that is used when opening a socket connection to SQL Server. If the portNumber property is not set, the getPortNumber method returns the default value of 1433.
Note
The setPortNumber method does not do any range checking on the port value passed in. You can pass tort numbers that are not valid, like 99999, without triggering an error.
See Also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho