AggregationCollection.Insert Méthode

Définition

Surcharges

Insert(Int32, String, String)

Crée un objet Aggregation en utilisant le nom et l’identificateur spécifiés, l’insère dans la collection à l’index spécifié et retourne le nouvel objet Aggregation créé.

Insert(Int32, String)

Crée un objet Aggregation en utilisant le nom spécifié, l’insère dans la collection à l’index spécifié et retourne le nouvel objet Aggregation créé.

Insert(Int32, Aggregation)

Insère l’objet Aggregation spécifié dans la collection, à l’index spécifié.

Insert(Int32)

Crée un objet Aggregation en utilisant un nom et un identificateur générés uniques, l’insère dans la collection à l’index spécifié et retourne le nouvel objet Aggregation créé.

Insert(Int32, String, String)

Crée un objet Aggregation en utilisant le nom et l’identificateur spécifiés, l’insère dans la collection à l’index spécifié et retourne le nouvel objet Aggregation créé.

public Microsoft.AnalysisServices.Aggregation Insert (int index, string name, string id);
override this.Insert : int * string * string -> Microsoft.AnalysisServices.Aggregation
Public Function Insert (index As Integer, name As String, id As String) As Aggregation

Paramètres

index
Int32

Index de base zéro auquel le Aggregation est inséré.

name
String

Nom du nouvel objet Aggregation.

id
String

Identificateur du nouvel objet Aggregation.

Retours

Objet Aggregation nouvellement créé.

Exceptions

L’index spécifié n’est pas une valeur valide (inférieure à zéro ou supérieure au nombre total d’éléments).

  • Le nom spécifié n’est pas valide dans la collection.
  • L’identificateur spécifié n’est pas valide dans la collection.

S’applique à

Insert(Int32, String)

Crée un objet Aggregation en utilisant le nom spécifié, l’insère dans la collection à l’index spécifié et retourne le nouvel objet Aggregation créé.

public Microsoft.AnalysisServices.Aggregation Insert (int index, string name);
override this.Insert : int * string -> Microsoft.AnalysisServices.Aggregation
Public Function Insert (index As Integer, name As String) As Aggregation

Paramètres

index
Int32

Index de base zéro auquel le Aggregation est inséré.

name
String

Nom du nouvel objet Aggregation. Il doit être unique dans la collection.

Retours

Objet Aggregation nouvellement créé.

Exceptions

L’index spécifié n’est pas une valeur valide (inférieure à zéro ou supérieure au nombre total d’éléments).

Le nom spécifié n’est pas valide dans la collection.

Remarques

L’identificateur du Aggregation est généré en fonction du nom spécifié.

S’applique à

Insert(Int32, Aggregation)

Insère l’objet Aggregation spécifié dans la collection, à l’index spécifié.

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

Paramètres

index
Int32

Index de base zéro auquel le Aggregation est inséré.

item
Aggregation

Objet Aggregation à insérer.

Exceptions

L’index spécifié n’est pas une valeur valide (inférieure à zéro ou supérieure au nombre total d’éléments).

  • L’élément spécifié est une référence Null (Nothing en Visual Basic).
  • L’élément spécifié existe déjà dans la collection.
  • L’identificateur du spécifié Aggregation n’est pas valide dans la collection.
  • Le nom du spécifié Aggregation n’est pas valide dans la collection.
  • Le niveau de compatibilité du spécifié Aggregation n’est pas valide dans la collection.

S’applique à

Insert(Int32)

Crée un objet Aggregation en utilisant un nom et un identificateur générés uniques, l’insère dans la collection à l’index spécifié et retourne le nouvel objet Aggregation créé.

public Microsoft.AnalysisServices.Aggregation Insert (int index);
override this.Insert : int -> Microsoft.AnalysisServices.Aggregation
Public Function Insert (index As Integer) As Aggregation

Paramètres

index
Int32

Index de base zéro auquel le Aggregation est inséré.

Retours

Objet Aggregation nouvellement créé.

Exceptions

L’index spécifié n’est pas une valeur valide (inférieure à zéro ou supérieure au nombre total d’éléments).

S’applique à