Partilhar via


TranslationCollection.Add Method

Definition

Overloads

Add(Translation)

Adds the specified Translation to the end of the collection.

Add(Int32)

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

Add(Int32, String)

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

Add(Translation)

Adds the specified Translation to the end of the collection.

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

Parameters

item
Translation

The Translation to be added.

Returns

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

Add(Int32)

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

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

Parameters

language
Int32

The language for the new Translation object.

Returns

The newly created Translation object.

Exceptions

The specified language is not valid in the collection.

Applies to

Add(Int32, String)

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

public Microsoft.AnalysisServices.Translation Add (int language, string caption);
override this.Add : int * string -> Microsoft.AnalysisServices.Translation
Public Function Add (language As Integer, caption As String) As Translation

Parameters

language
Int32

The language for the new Translation object.

caption
String

The caption for the new Translation object.

Returns

The newly created Translation object.

Applies to