Condividi tramite


CubeDimensionCollection.Insert Method

Definition

Overloads

Insert(Int32, String, String, String)

Creates a new CubeDimension object using the specified DimensionID, name and identifier, inserts it to the collection at the specified index and returns the new CubeDimension created.

Insert(Int32, String)

Creates a new CubeDimension object using the specified DimensionID, inserts it to the collection at the specified index and returns the new CubeDimension created.

Insert(Int32, CubeDimension)

Inserts the specified CubeDimension to the collection at the specified index.

Insert(Int32, String, String, String)

Creates a new CubeDimension object using the specified DimensionID, name and identifier, inserts it to the collection at the specified index and returns the new CubeDimension created.

public Microsoft.AnalysisServices.CubeDimension Insert (int index, string dimensionId, string name, string id);
override this.Insert : int * string * string * string -> Microsoft.AnalysisServices.CubeDimension
Public Function Insert (index As Integer, dimensionId As String, name As String, id As String) As CubeDimension

Parameters

index
Int32

The zero-based index at which the CubeDimension is inserted.

dimensionId
String

The DimensionID for the new CubeDimension object.

name
String

The Name for the new CubeDimension object.

id
String

The identifier for the new CubeDimension object.

Returns

The newly created CubeDimension 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 CubeDimension object using the specified DimensionID, inserts it to the collection at the specified index and returns the new CubeDimension created.

public Microsoft.AnalysisServices.CubeDimension Insert (int index, string dimensionId);
override this.Insert : int * string -> Microsoft.AnalysisServices.CubeDimension
Public Function Insert (index As Integer, dimensionId As String) As CubeDimension

Parameters

index
Int32

The zero-based index at which the CubeDimension is inserted.

dimensionId
String

The DimensionID for the new CubeDimension object.

Returns

The newly created CubeDimension object.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

Applies to

Insert(Int32, CubeDimension)

Inserts the specified CubeDimension to the collection at the specified index.

public void Insert (int index, Microsoft.AnalysisServices.CubeDimension item);
override this.Insert : int * Microsoft.AnalysisServices.CubeDimension -> unit
Public Sub Insert (index As Integer, item As CubeDimension)

Parameters

index
Int32

The zero-based index at which the CubeDimension is inserted.

item
CubeDimension

The CubeDimension to be inserted.

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 CubeDimension is not valid in the collection.
  • The name of the specified CubeDimension is not valid in the collection.
  • The compatibility-level of the specified CubeDimension is not valid in the collection.

Applies to