Classe DataSourceDefinition
Represents a data source definition.
Hiérarchie d'héritage
System. . :: . .Object
ReportService2010. . :: . .DataSourceDefinitionOrReference
ReportService2010..::..DataSourceDefinition
Espace de noms : ReportService2010
Assembly : ReportService2010 (en ReportService2010.dll)
Syntaxe
'Déclaration
<SerializableAttribute> _
Public Class DataSourceDefinition _
Inherits DataSourceDefinitionOrReference
'Utilisation
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
Le type DataSourceDefinition expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
DataSourceDefinition | Initializes a new instance of the DataSourceDefinition class. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
ConnectString | Gets or sets the connection string for a data source. | |
CredentialRetrieval | Gets or sets a value that indicates the way in which the report server retrieves data source credentials. | |
Enabled | Gets a value that 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 | Gets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials. | |
ImpersonateUserSpecified | Gets or sets a value that indicates whether the ImpersonateUser property is specified. | |
OriginalConnectStringExpressionBased | Gets a value that indicates whether the original connection string for the data source was expression-based. | |
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 it prompts for credentials. | |
UseOriginalConnectString | Gets or sets a value that specifies whether the data source should revert to the original connection string. | |
UserName | Gets or sets the user name the report server uses to connect to a data source. | |
WindowsCredentials | 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. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Equals | (hérité de Object.) | |
Finalize | (hérité de Object.) | |
GetHashCode | (hérité de Object.) | |
GetType | (hérité de Object.) | |
MemberwiseClone | (hérité de Object.) | |
ToString | (hérité de Object.) |
Haut de la page
Notes
Use the DataSourceDefinition class together 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.
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.