DataSourceCredentials DataSourceCredentials DataSourceCredentials Class

定义

表示数据源凭据。 Represents data source credentials.

public ref class DataSourceCredentials
[System.CodeDom.Compiler.GeneratedCode("wsdl", "2.0.50727.3038")]
[System.ComponentModel.DesignerCategory("code")]
[System.Diagnostics.DebuggerStepThrough]
[System.Xml.Serialization.XmlType(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]
public class DataSourceCredentials
Public Class DataSourceCredentials
继承
DataSourceCredentialsDataSourceCredentialsDataSourceCredentials
属性

注解

使用DataSourceCredentials以及要将凭据传递到外部数据源的 GetReportParameters 方法的类。Use the DataSourceCredentials class together with the GetReportParameters method to pass credentials to an external data source.

构造函数

DataSourceCredentials() DataSourceCredentials() DataSourceCredentials()

初始化 DataSourceCredentials 类的新实例。 Initializes a new instance of the DataSourceCredentials class.

属性

DataSourceName DataSourceName DataSourceName

设置凭据将传至的数据源的名称。 Sets the name of the data source to which to pass credentials.

Password Password Password

设置密码报表服务器用于连接到数据源。 Sets the password the report server uses to connect to a data source.

UserName UserName UserName

获取或设置报表服务器用于连接到数据源的用户名。 Gets or sets the user name the report server uses to connect to a data source.

适用于