Megosztás a következőn keresztül:


DataSourceViewCollection.Add Method

Definition

Overloads

Add()

Creates a new DataSourceView object using a generated unique Name and identifier, adds it to the end of the collection and returns the new DataSourceView created.

Add(DataSourceView)

Adds the specified DataSourceView to the end of the collection.

Add(String)

Creates a new DataSourceView object using the specified name, adds it to the end of the collection and returns the new DataSourceView created.

Add(String, String)

Creates a new DataSourceView object using the specified name and identifier, adds it to the end of the collection and returns the new DataSourceView created.

Add()

Creates a new DataSourceView object using a generated unique Name and identifier, adds it to the end of the collection and returns the new DataSourceView created.

public Microsoft.AnalysisServices.DataSourceView Add ();
override this.Add : unit -> Microsoft.AnalysisServices.DataSourceView
Public Function Add () As DataSourceView

Returns

The newly created DataSourceView object.

Applies to

Add(DataSourceView)

Adds the specified DataSourceView to the end of the collection.

public int Add (Microsoft.AnalysisServices.DataSourceView item);
override this.Add : Microsoft.AnalysisServices.DataSourceView -> int
Public Function Add (item As DataSourceView) As Integer

Parameters

item
DataSourceView

The DataSourceView to be added.

Returns

The zero-based index at which the DataSourceView has been added to the collection.

Exceptions

  • The specified item is a null reference (Nothing in Visual Basic).
  • The specified item already esists in the collection.
  • The identifier of the specified DataSourceView is not valid in the collection.
  • The name of the specified DataSourceView is not valid in the collection.
  • The compatibility-level of the specified DataSourceView is not valid in the collection.

Applies to

Add(String)

Creates a new DataSourceView object using the specified name, adds it to the end of the collection and returns the new DataSourceView created.

public Microsoft.AnalysisServices.DataSourceView Add (string name);
override this.Add : string -> Microsoft.AnalysisServices.DataSourceView
Public Function Add (name As String) As DataSourceView

Parameters

name
String

The Name for the new DataSourceView object.

Returns

The newly created DataSourceView object.

Exceptions

The specified name is not valid in the collection.

Remarks

The identifier for the new DataSourceView object is generated based on the specified name.

Applies to

Add(String, String)

Creates a new DataSourceView object using the specified name and identifier, adds it to the end of the collection and returns the new DataSourceView created.

public Microsoft.AnalysisServices.DataSourceView Add (string name, string id);
override this.Add : string * string -> Microsoft.AnalysisServices.DataSourceView
Public Function Add (name As String, id As String) As DataSourceView

Parameters

name
String

The Name for the new DataSourceView object.

id
String

The identifier for the new DataSourceView object.

Returns

The newly created DataSourceView object.

Exceptions

  • The specified name is not valid in the collection.
  • The specified identifier is not valid in the collection.

Applies to