Compartilhar via


Propriedade do RDL DataSourceDefinition.ConnectString

Gets or sets the connection string for a data source.

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

Sintaxe

'Declaração
Public Property ConnectString As String 
    Get 
    Set
'Uso
Dim instance As DataSourceDefinition 
Dim value As String 

value = instance.ConnectString

instance.ConnectString = value
public string ConnectString { get; set; }
public:
property String^ ConnectString {
    String^ get ();
    void set (String^ value);
}
member ConnectString : string with get, set
function get ConnectString () : String 
function set ConnectString (value : String)

Valor da propriedade

Tipo: System.String
A String containing the connection string for a data source.

Comentários

The connection string used is specific to the data extension specified in the Extension property.

This value is ignored if the UseOriginalConnectString property is set to true.

If no value is specified, the connection string will revert to the original string or expression defined in the report.

Consulte também

Referência

DataSourceDefinition Classe

Namespace ReportService2005