Compartir a través de


Clase DataSourceDefinition

Represents a data source definition in the Report Server database.

Jerarquía de herencia

System.Object
  ReportService2005.DataSourceDefinitionOrReference
    ReportService2005.DataSourceDefinition

Espacio de nombres:  ReportService2005
Ensamblado:  ReportService2005 (en ReportService2005.dll)

Sintaxis

'Declaración
Public Class DataSourceDefinition _
    Inherits DataSourceDefinitionOrReference
'Uso
Dim instance As DataSourceDefinition
public class DataSourceDefinition : DataSourceDefinitionOrReference
public ref class DataSourceDefinition : public DataSourceDefinitionOrReference
type DataSourceDefinition =  
    class 
        inherit DataSourceDefinitionOrReference 
    end
public class DataSourceDefinition extends DataSourceDefinitionOrReference

El tipo DataSourceDefinition expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público DataSourceDefinition Initializes a new instance of the DataSourceDefinition class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública ConnectString Gets or sets the connection string for a data source.
Propiedad pública CredentialRetrieval Indicates the way in which the Report Server retrieves data source credentials.
Propiedad pública Enabled Indicates whether a data source is enabled.
Propiedad pública EnabledSpecified Gets or sets a value that indicates whether the Enabled property is specified.
Propiedad pública Extension Gets or sets the name of the data source extension: SQL, OLEDB, ODBC, or a custom extension.
Propiedad pública 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.
Propiedad pública ImpersonateUserSpecified Gets or sets a value that indicates whether the ImpersonateUser property is specified.
Propiedad pública OriginalConnectStringExpressionBased Indicates whether the original connection string for the data source was expression-based. Read-only.
Propiedad pública Password Gets or sets the password that the report server uses to connect to a data source.
Propiedad pública Prompt Gets or sets the prompt that the report server displays to the user when prompting for credentials.
Propiedad pública UseOriginalConnectString Specifies whether the data source should revert to the original connection string.
Propiedad pública UserName Gets or sets the user name that the report server uses to connect to a data source.
Propiedad pública WindowsCredentials Indicates whether the Report Server passes user-provided or stored credentials as Windows credentials when connecting to a data source.

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de Object.)

Arriba

Comentarios

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.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres ReportService2005