Partager via


TableLogOnInfo Classe

Indique les propriétés permettant d'extraire et de définir des options de connectivité de tables.

Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe TableLogOnInfo.

System.Object
   TableLogOnInfo

[Visual Basic]

Public Class TableLogOnInfo
   Implements ICloneable

[C#]

public class TableLogOnInfo : ICloneable

Exemple

[Visual Basic]

      Private Sub SetLogOnInfo(ByVal server As String, ByVal database _ 
      String, ByVal userID As String, ByVal password As String, ByVal _ 
      table As String)
      
         Dim logOnInfo As New TableLogOnInfo()
         logOnInfo = report.Database.Tables.Item(table).LogOnInfo
      
         logOnInfo.ConnectionInfo.ServerName = server
         logOnInfo.ConnectionInfo.DatabaseName = database
         logOnInfo.ConnectionInfo.UserID = userID
         logOnInfo.ConnectionInfo.Password = password
         logOnInfo.TableName = table
      End Sub
      
[C++]

      static void SetLogOnInfo (String* server, String* database, String* userID, String* password, String* table)
      {
         TableLogOnInfo* logOnInfo = new TableLogOnInfo ();
         logOnInfo = Report->Database->Tables->Item [table]->LogOnInfo;
      
         logOnInfo->ConnectionInfo->ServerName = server;
         logOnInfo->ConnectionInfo->DatabaseName = database;
         logOnInfo->ConnectionInfo->UserID = userID;
         logOnInfo->ConnectionInfo->Password = password;
         logOnInfo->TableName = table;
      };
      
[C#]

      private void SetLogOnInfo (string server, string database, string userID, string password, string table)
      {
         TableLogOnInfo logOnInfo = new TableLogOnInfo ();
         logOnInfo = Report.Database.Tables [table].LogOnInfo;
      
         logOnInfo.ConnectionInfo.ServerName = server;
         logOnInfo.ConnectionInfo.DatabaseName = database;
         logOnInfo.ConnectionInfo.UserID = userID;
         logOnInfo.ConnectionInfo.Password = password;
         logOnInfo.TableName = table;
      }
      

Configuration requise

Espace de noms CrystalDecisions.Shared

Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Voir aussi

TableLogOnInfo Membres | CrystalDecisions.Shared Espace de noms

**

©2005 Business Objects SA. Tous droits réservés.

Business Objects SA.
http://www.france.businessobjects.com/
Services de support
http://www.businessobjects.com/support/