AttributeTranslationCollection.Add Method

Definition

Overloads

Add(AttributeTranslation)

Adds the specified AttributeTranslation to the end of the collection.

Add(Int32)

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

Add(Int32, String)

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

Add(AttributeTranslation)

Adds the specified AttributeTranslation to the end of the collection.

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

Parameters

Returns

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

Add(Int32)

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

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

Parameters

language
Int32

The language for the new AttributeTranslation object.

Returns

The newly created AttributeTranslation object.

Exceptions

The specified language is not valid in the collection.

Applies to

Add(Int32, String)

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

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

Parameters

language
Int32

The language for the new AttributeTranslation object.

caption
String

The caption for the new AttributeTranslation object.

Returns

The newly created AttributeTranslation object.

Applies to