Condividi tramite


MdxScriptCollection.Add Method

Definition

Overloads

Add()

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

Add(MdxScript)

Adds the specified MdxScript to the end of the collection.

Add(String)

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

Add(String, String)

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

Add()

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

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

Returns

The newly created MdxScript object.

Applies to

Add(MdxScript)

Adds the specified MdxScript to the end of the collection.

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

Parameters

item
MdxScript

The MdxScript to be added.

Returns

The zero-based index at which the MdxScript 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 MdxScript is not valid in the collection.
  • The name of the specified MdxScript is not valid in the collection.
  • The compatibility-level of the specified MdxScript is not valid in the collection.

Applies to

Add(String)

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

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

Parameters

name
String

The Name for the new MdxScript object.

Returns

The newly created MdxScript object.

Exceptions

The specified name is not valid in the collection.

Remarks

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

Applies to

Add(String, String)

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

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

Parameters

name
String

The Name for the new MdxScript object.

id
String

The identifier for the new MdxScript object.

Returns

The newly created MdxScript object.

Exceptions

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

Applies to