setPortNumber Method (SQLServerDataSource)
Sets the port number to be used to communicate with SQL Server.
Syntax
public void setPortNumber(int portNumber)
Parameters
portNumber
An int value that contains the 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 a port number that is not valid, like 99999, without triggering an error.
See Also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ