Condividi tramite


Classe DataSourceDefinition

Represents a data source definition.

Gerarchia di ereditarietà

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

Spazio dei nomi  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

Sintassi

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

Nel tipo DataSourceDefinition sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DataSourceDefinition Initializes a new instance of the DataSourceDefinition class.

In alto

Proprietà

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

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

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.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento