Класс DataSourceDefinition
Represents a data source definition in the Report Server database.
Иерархия наследования
System. . :: . .Object
ReportService2005. . :: . .DataSourceDefinitionOrReference
ReportService2005..::..DataSourceDefinition
Пространство имен: ReportService2005
Сборка: ReportService2005 (в ReportService2005.dll)
Синтаксис
'Декларация
<SerializableAttribute> _
Public Class DataSourceDefinition _
Inherits DataSourceDefinitionOrReference
'Применение
Dim instance As DataSourceDefinition
[SerializableAttribute]
public class DataSourceDefinition : DataSourceDefinitionOrReference
[SerializableAttribute]
public ref class DataSourceDefinition : public DataSourceDefinitionOrReference
[<SerializableAttribute>]
type DataSourceDefinition =
class
inherit DataSourceDefinitionOrReference
end
public class DataSourceDefinition extends DataSourceDefinitionOrReference
Тип DataSourceDefinition обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
DataSourceDefinition | Initializes a new instance of the DataSourceDefinition class. |
В начало
Свойства
Имя | Описание | |
---|---|---|
ConnectString | Gets or sets the connection string for a data source. | |
CredentialRetrieval | Indicates the way in which the Report Server retrieves data source credentials. | |
Enabled | Indicates whether a data source is enabled. | |
EnabledSpecified | Gets or sets a value that indicates whether the Enabled property is specified. | |
Extension | Gets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension. | |
ImpersonateUser | Indicates whether the report server attempts to impersonate a user by using stored credentials after a data processing extension has established an authenticated connection to a data source. | |
ImpersonateUserSpecified | Gets or sets a value that indicates whether the ImpersonateUser property is specified. | |
OriginalConnectStringExpressionBased | Indicates whether the original connection string for the data source was expression-based. Read-only. | |
Password | Gets or sets the password that the report server uses to connect to a data source. | |
Prompt | Gets or sets the prompt that the report server displays to the user when prompting for credentials. | |
UseOriginalConnectString | Specifies whether the data source should revert to the original connection string. | |
UserName | Gets or sets the user name that the report server uses to connect to a data source. | |
WindowsCredentials | Indicates whether the Report Server passes user-provided or stored credentials as Windows credentials when connecting to a data source. |
В начало
Методы
Имя | Описание | |
---|---|---|
Equals | (Производный от Object.) | |
Finalize | (Производный от Object.) | |
GetHashCode | (Производный от Object.) | |
GetType | (Производный от Object.) | |
MemberwiseClone | (Производный от Object.) | |
ToString | (Производный от Object.) |
В начало
Замечания
Use the DataSourceDefinition class with the Item property of the DataSource class.
A DataSourceDefinition object is returned as output by the GetDataSourceContents method and is passed as input to the CreateDataSource and SetDataSourceContents methods.
The DataSourceDefinition class is used for both embedded and shared data sources.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.