共用方式為


getUser Method (SQLServerDataSource)

Returns the user name that is used to connect the data source.

public java.lang.String getUser()

傳回值

A String that contains the user name.

備註

The setUser method sets the user name that will be used when connecting to the instance of SQL Server. If user name value is not set, the getUser method returns the default value of null.

另請參閱

參考

SQLServerDataSource Class

概念

SQLServerDataSource Methods
SQLServerDataSource Members