DataSourceCollection.AddNew Method

Definition

Overloads

AddNew(String)

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

AddNew(String, String)

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

AddNew(String)

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

public Microsoft.AnalysisServices.RelationalDataSource AddNew (string key);
override this.AddNew : string -> Microsoft.AnalysisServices.RelationalDataSource
Public Function AddNew (key As String) As RelationalDataSource

Parameters

key
String

The key of the DataSource to be added.

Returns

The newly created DataSource object.

Applies to

AddNew(String, String)

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

public Microsoft.AnalysisServices.RelationalDataSource AddNew (string name, string key);
override this.AddNew : string * string -> Microsoft.AnalysisServices.RelationalDataSource
Public Function AddNew (name As String, key As String) As RelationalDataSource

Parameters

name
String

The name of the DataSource to be added.

key
String

The key of the DataSource to be added.

Returns

The newly created DataSource object.

Applies to