Compartilhar via


Classe DataSourceDefinition

Represents a data source definition in SharePoint library.

Hierarquia de herança

System. . :: . .Object
  ReportService2006. . :: . .DataSourceDefinitionOrReference
    ReportService2006..::..DataSourceDefinition

Namespace:  ReportService2006
Assembly:  ReportService2006 (em ReportService2006.dll)

Sintaxe

'Declaração
<SerializableAttribute> _
Public Class DataSourceDefinition _
    Inherits DataSourceDefinitionOrReference
'Uso
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

O tipo DataSourceDefinition expõe os membros a seguir.

Construtores

  Nome Descrição
Método público DataSourceDefinition Initializes a new instance of the DataSourceDefinition class.

Início

Propriedades

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

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString (Herdado de Object.)

Início

Comentários

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.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência