MdxScriptCollection.Insert 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
Insert(Int32, String, String) |
Creates a new MdxScript object using the specified name and identifier, inserts it to the collection at the specified index and returns the new MdxScript created. |
Insert(Int32, String) |
Creates a new MdxScript object using the specified name, inserts it to the collection at the specified index and returns the new MdxScript created. |
Insert(Int32, MdxScript) |
Inserts the specified MdxScript to the collection at the specified index. |
Insert(Int32) |
Creates a new MdxScript object using a generated unique Name and identifier, inserts it to the collection at the specified index and returns the new MdxScript created. |
Insert(Int32, String, String)
Creates a new MdxScript object using the specified name and identifier, inserts it to the collection at the specified index and returns the new MdxScript created.
public Microsoft.AnalysisServices.MdxScript Insert (int index, string name, string id);
override this.Insert : int * string * string -> Microsoft.AnalysisServices.MdxScript
Public Function Insert (index As Integer, name As String, id As String) As MdxScript
Parameters
Returns
The newly created MdxScript object.
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).
- The specified name is not valid in the collection.
- The specified identifier is not valid in the collection.
Applies to
Insert(Int32, String)
Creates a new MdxScript object using the specified name, inserts it to the collection at the specified index and returns the new MdxScript created.
public Microsoft.AnalysisServices.MdxScript Insert (int index, string name);
override this.Insert : int * string -> Microsoft.AnalysisServices.MdxScript
Public Function Insert (index As Integer, name As String) As MdxScript
Parameters
Returns
The newly created MdxScript object.
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).
The specified name is not valid in the collection.
Remarks
The identifier for the MdxScript is generated based on the specified Name.
Applies to
Insert(Int32, MdxScript)
Inserts the specified MdxScript to the collection at the specified index.
public void Insert (int index, Microsoft.AnalysisServices.MdxScript item);
override this.Insert : int * Microsoft.AnalysisServices.MdxScript -> unit
Public Sub Insert (index As Integer, item As MdxScript)
Parameters
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).
- 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
Insert(Int32)
Creates a new MdxScript object using a generated unique Name and identifier, inserts it to the collection at the specified index and returns the new MdxScript created.
public Microsoft.AnalysisServices.MdxScript Insert (int index);
override this.Insert : int -> Microsoft.AnalysisServices.MdxScript
Public Function Insert (index As Integer) As MdxScript
Parameters
Returns
The newly created MdxScript object.
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).