此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
Initializes a new instance of the DataSourceCredentials class using the specified user name and password.
命名空间: Microsoft.ReportingServices.RdlObjectModel
程序集: Microsoft.ReportingServices.Designer.Controls(在 Microsoft.ReportingServices.Designer.Controls.dll 中)
语法
声明
Public Sub New ( _
userName As String, _
password As String _
)
用法
Dim userName As String
Dim password As String
Dim instance As New DataSourceCredentials(userName, _
password)
public DataSourceCredentials(
string userName,
string password
)
public:
DataSourceCredentials(
String^ userName,
String^ password
)
new :
userName:string *
password:string -> DataSourceCredentials
public function DataSourceCredentials(
userName : String,
password : String
)
参数
- userName
类型:System.String
The user name.
- password
类型:System.String
The password.