Connections.Add2(String, String, Object, Object, Object, Object, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute une nouvelle connexion au workbook.
public Microsoft.Office.Interop.Excel.WorkbookConnection Add2 (string Name, string Description, object ConnectionString, object CommandText, object lCmdtype, object CreateModelConnection, object ImportRelationships);
Public Function Add2 (Name As String, Description As String, ConnectionString As Object, CommandText As Object, Optional lCmdtype As Object, Optional CreateModelConnection As Object, Optional ImportRelationships As Object) As WorkbookConnection
Paramètres
- Name
- String
Nom de la connexion.
- Description
- String
Brève description de la connexion.
- ConnectionString
- Object
Chaîne de connexion.
- CommandText
- Object
Le texte de commande nécessaire pour créer la connexion.
- lCmdtype
- Object
Type de commande.
- CreateModelConnection
- Object
Spécifie s’il faut créer une connexion au PowerPivot modèle.
- ImportRelationships
- Object
Spécifie s’il faut importer des relations existantes.