DataSourceDefinition-Klasse

Represents a data source definition.

Vererbungshierarchie

System. . :: . .Object
  ReportService2010. . :: . .DataSourceDefinitionOrReference
    ReportService2010..::..DataSourceDefinition

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class DataSourceDefinition _
    Inherits DataSourceDefinitionOrReference
'Usage
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

Der DataSourceDefinition-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode DataSourceDefinition Initializes a new instance of the DataSourceDefinition class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft ConnectString Gets or sets the connection string for a data source.
Öffentliche Eigenschaft CredentialRetrieval Gets or sets a value that indicates the way in which the report server retrieves data source credentials.
Öffentliche Eigenschaft Enabled Gets a value that indicates whether a data source is enabled.
Öffentliche Eigenschaft EnabledSpecified Gets or sets a value that indicates whether the Enabled property is specified.
Öffentliche Eigenschaft Extension Gets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.
Öffentliche Eigenschaft ImpersonateUser Gets or sets a value that indicates whether the report server tries to impersonate a user by using stored credentials.
Öffentliche Eigenschaft ImpersonateUserSpecified Gets or sets a value that indicates whether the ImpersonateUser property is specified.
Öffentliche Eigenschaft OriginalConnectStringExpressionBased Gets a value that indicates whether the original connection string for the data source was expression-based.
Öffentliche Eigenschaft Password Gets or sets the password that the report server uses to connect to a data source.
Öffentliche Eigenschaft Prompt Gets or sets the prompt that the report server displays to the user when it prompts for credentials.
Öffentliche Eigenschaft UseOriginalConnectString Gets or sets a value that specifies whether the data source should revert to the original connection string.
Öffentliche Eigenschaft UserName Gets or sets the user name the report server uses to connect to a data source.
Öffentliche Eigenschaft 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.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Hinweise

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.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis