다음을 통해 공유


AttributeTranslationCollection.Insert Method

Definition

Overloads

Insert(Int32, AttributeTranslation)

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

Insert(Int32, Int32)

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

Insert(Int32, AttributeTranslation)

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

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

Parameters

index
Int32

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

item
AttributeTranslation

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

Applies to

Insert(Int32, Int32)

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

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

Parameters

index
Int32

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

language
Int32

The language for the new AttributeTranslation object.

Returns

The newly created AttributeTranslation 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