DataSourceDefinition DataSourceDefinition DataSourceDefinition DataSourceDefinition Class

定义

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

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

注解

将类与类DataSource的属性一起使用。 Item DataSourceDefinitionUse the DataSourceDefinition class together with the Item property of the DataSource class.

对象作为GetDataSourceContents方法的输出返回, 并作为输入CreateDataSource传递给和SetDataSourceContents方法。 DataSourceDefinitionA 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()

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

属性

ConnectString ConnectString ConnectString ConnectString

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

CredentialRetrieval CredentialRetrieval CredentialRetrieval CredentialRetrieval

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

Enabled Enabled Enabled Enabled

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

EnabledSpecified EnabledSpecified EnabledSpecified EnabledSpecified

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

Extension 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 ImpersonateUser

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

ImpersonateUserSpecified ImpersonateUserSpecified ImpersonateUserSpecified ImpersonateUserSpecified

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

OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased OriginalConnectStringExpressionBased

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

Password Password Password Password

获取或设置 Report Server 用于连接到数据源的密码。Gets or sets the password that the report server uses to connect to a data source.

Prompt Prompt Prompt Prompt

获取或设置当提示输入凭据时, Report Server 向用户显示的提示。Gets or sets the prompt that the report server displays to the user when it prompts for credentials.

UseOriginalConnectString UseOriginalConnectString UseOriginalConnectString UseOriginalConnectString

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

UserName UserName UserName UserName

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

WindowsCredentials WindowsCredentials WindowsCredentials WindowsCredentials

获取或设置一个值, 该值指示在连接到数据源时, Report Server 是否将用户提供的凭据或存储的凭据作为 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.

适用于