DataSourceCollection.AddNew Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.