DataSourceDefinition DataSourceDefinition DataSourceDefinition Class

定义

表示 SharePoint 库中的数据源定义。 Represents a data source definition in SharePoint library.

public ref class DataSourceDefinition : ReportService2006::DataSourceDefinitionOrReference
public class DataSourceDefinition : ReportService2006.DataSourceDefinitionOrReference
Public Class DataSourceDefinition
Inherits DataSourceDefinitionOrReference
继承

注解

使用DataSourceDefinition类连同Item属性DataSource类。Use the DataSourceDefinition class together with the Item property of the DataSource class.

ADataSourceDefinition对象将作为输出返回GetDataSourceContents方法并传递作为输入CreateDataSourceSetDataSourceContents方法。A DataSourceDefinition object is returned as output by the GetDataSourceContents method and is passed as input to the CreateDataSource and SetDataSourceContents methods.

DataSourceDefinition类用于这两个嵌入和共享数据源。The DataSourceDefinition class is used for both embedded and shared data sources.

构造函数

DataSourceDefinition() DataSourceDefinition() DataSourceDefinition()

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

属性

ConnectString ConnectString ConnectString

获取或设置数据源的连接字符串。 Gets or sets the connection string for a data source.

CredentialRetrieval CredentialRetrieval CredentialRetrieval

获取或设置一个值,该值指示报表服务器检索数据源凭据的方法。 Gets or sets a value that indicates the way in which the report server retrieves data source credentials.

Enabled Enabled Enabled

获取一个值,该值指示是否启用数据源。 Gets a value that indicates whether a data source is enabled.

EnabledSpecified EnabledSpecified EnabledSpecified

获取或设置一个值,该值指示是否Enabled指定属性。 Gets or sets a value that indicates whether the Enabled property is specified.

Extension Extension Extension

获取或设置数据源扩展的名称:SQL、OLEDB、ODBC 或自定义扩展。 Gets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.

ImpersonateUser ImpersonateUser ImpersonateUser

获取或设置一个值,该值指示报表服务器是否尝试使用存储的凭据来模拟用户。 Gets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials.

ImpersonateUserSpecified ImpersonateUserSpecified ImpersonateUserSpecified

获取或设置一个值,该值指示是否ImpersonateUser指定属性。 Gets or sets a value that indicates whether the ImpersonateUser property is specified.

OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased

获取一个值,该值指示数据源的原始连接字符串是否基于表达式。 Gets a value that indicates whether the original connection string for the data source was expression-based.

Password Password Password

获取或设置报表服务器用来连接数据源的密码。 Gets or sets the password that the report server uses to connect to a data source.

Prompt Prompt Prompt

获取或设置在报表服务器提示用户提供凭据时,向用户显示的提示。 Gets or sets the prompt that the report server displays to the user when it prompts for credentials.

UseOriginalConnectString UseOriginalConnectString UseOriginalConnectString

获取或设置一个值,该值指定数据源是否应恢复为原始连接字符串。 Gets or sets a value that specifies whether the data source should revert to the original connection string.

UserName UserName UserName

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

WindowsCredentials WindowsCredentials WindowsCredentials

获取或设置一个值,该值指示报表服务器在连接到数据源时,是否将用户提供的凭据或存储的凭据作为 Windows 凭据传递。 Gets or sets a value that indicates whether the report server passes user-provided or stored credentials as Windows credentials when it connects to a data source.

适用于