次の方法で共有


TranslationCollection.Add メソッド

定義

オーバーロード

Add(Translation)

指定した Translation をコレクションの末尾に追加します。

Add(Int32)

指定した言語を使用して新しい Translation オブジェクトを作成し、コレクションの末尾に追加して、作成された新しい Translation を返します。

Add(Int32, String)

指定した DimensionID を使用して新しい Translation オブジェクトを作成し、コレクションの末尾に追加し、新しく作成された Translation を返します。

Add(Translation)

指定した Translation をコレクションの末尾に追加します。

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

パラメーター

item
Translation

追加する Translation です。

戻り値

Translation が追加されたコレクションの 0 から始まるインデックスです。

例外

  • 指定したアイテムは null 参照 (Visual Basic では Nothing) です。
  • 指定したアイテムはコレクション内に既に存在しています。
  • 指定した Translation の言語がコレクション内で無効です。
  • 指定した Translation の名前がコレクション内で無効です。
  • 指定した Translation の互換性レベルは、コレクション内では無効です。

適用対象

Add(Int32)

指定した言語を使用して新しい Translation オブジェクトを作成し、コレクションの末尾に追加して、作成された新しい Translation を返します。

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

パラメーター

language
Int32

新しい Translation オブジェクトの言語です。

戻り値

新しく作成された Translation オブジェクトです。

例外

指定した言語がコレクション内で有効ではありません。

適用対象

Add(Int32, String)

指定した DimensionID を使用して新しい Translation オブジェクトを作成し、コレクションの末尾に追加し、新しく作成された Translation を返します。

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

パラメーター

language
Int32

新しい Translation オブジェクトの言語です。

caption
String

新しい Translation オブジェクトのキャプションです。

戻り値

新しく作成された Translation オブジェクトです。

適用対象