DataSourceCollection.Add DataSourceCollection.Add DataSourceCollection.Add Method

Definition

Creates and adds a DataSource to the collection.

Overloads

Add() Add() Add()

Creates and adds a DataSource to the end of the collection.

Add(DataSource) Add(DataSource) Add(DataSource)

Adds a DataSource to the end of the collection.

Add(String) Add(String) Add(String)

Creates and adds a DataSource, with the specified identifier, to the end of the collection.

Add(String, String) Add(String, String) Add(String, String)

Creates and adds a DataSource, with the specified name and identifier, to the end of the collection.

Add() Add() Add()

Creates and adds a DataSource to the end of the collection.

public:
 Microsoft::AnalysisServices::RelationalDataSource ^ Add();
public Microsoft.AnalysisServices.RelationalDataSource Add ();
Public Function Add () As RelationalDataSource
Returns

Add(DataSource) Add(DataSource) Add(DataSource)

Adds a DataSource to the end of the collection.

public:
 int Add(Microsoft::AnalysisServices::DataSource ^ item);
public int Add (Microsoft.AnalysisServices.DataSource item);
Public Function Add (item As DataSource) As Integer
Parameters
item
DataSource DataSource DataSource

The DataSource to be added.

Returns

The zero-based index at which the DataSource has been added.

Add(String) Add(String) Add(String)

Creates and adds a DataSource, with the specified identifier, to the end of the collection.

public:
 Microsoft::AnalysisServices::RelationalDataSource ^ Add(System::String ^ name);
public Microsoft.AnalysisServices.RelationalDataSource Add (string name);
Public Function Add (name As String) As RelationalDataSource
Parameters
name
String String String

The identifier of the DataSource to be added.

Returns

The zero-based index at which the DataSource has been added.

Add(String, String) Add(String, String) Add(String, String)

Creates and adds a DataSource, with the specified name and identifier, to the end of the collection.

public:
 Microsoft::AnalysisServices::RelationalDataSource ^ Add(System::String ^ name, System::String ^ id);
public Microsoft.AnalysisServices.RelationalDataSource Add (string name, string id);
Public Function Add (name As String, id As String) As RelationalDataSource
Parameters
name
String String String

The name of the DataSource to be added.

id
String String String

The identifier of the DataSource to be added.

Returns

The zero-based index at which the DataSource has been added.

Applies to