共用方式為


DataSourceDefinition.ConnectString 屬性

Gets or sets the connection string for a data source.

命名空間:  ReportService2010
組件:  ReportService2010 (在 ReportService2010.dll 中)

語法

'宣告
Public Property ConnectString As String 
    Get 
    Set
'用途
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)

屬性值

型別:System.String
A String that contains the connection string for a data source.

備註

The connection string that is 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.

請參閱

參考

DataSourceDefinition 類別

ReportService2010 命名空間