다음을 통해 공유


TableLogOnInfo 클래스

테이블 연결 옵션을 검색하고 설정할 수 있는 속성을 제공합니다.

이 형식의 멤버 목록을 보려면 TableLogOnInfo 멤버를 참조하십시오.

System.Object
   TableLogOnInfo

[Visual Basic]

Public Class TableLogOnInfo
   Implements ICloneable

[C#]

public class TableLogOnInfo : ICloneable

예제

자습서

이 예제는 이름을 기준으로 지정한 테이블의 TableLogOnInfo 개체를 설정하는 방법을 설명합니다.

[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;
      }
      

요구 사항

네임스페이스 CrystalDecisions.Shared

어셈블리 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

참고 항목

TableLogOnInfo 멤버 | CrystalDecisions.Shared 네임스페이스

**

©2005 Business Objects SA All rights reserved.

Business Objects SA
http://www.businessobjects.com/
지원 서비스
http://korea.businessobjects.com/services/