Aracılığıyla paylaş


TranslationCollection.Insert Method

Definition

Overloads

Insert(Int32, Int32)

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

Insert(Int32, Translation)

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

Insert(Int32, Int32)

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

public Microsoft.AnalysisServices.Translation Insert (int index, int language);
override this.Insert : int * int -> Microsoft.AnalysisServices.Translation
Public Function Insert (index As Integer, language As Integer) As Translation

Parameters

index
Int32

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

language
Int32

The language for the new Translation object.

Returns

The newly created Translation object.

Exceptions

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

The specified language is not valid in the collection.

Applies to

Insert(Int32, Translation)

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

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

Parameters

index
Int32

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

item
Translation

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

Applies to