Share via


SqlCeRemoteDataAccess.Pull 方法 (String, String, String, RdaTrackOption)

此型別具有 SecurityCriticalAttribute 屬性,它會限制為由 .NET Framework for Silverlight 類別程式庫內部使用。使用此型別之任何成員的應用程式碼會擲回 MethodAccessException。

[安全性關鍵]

從遠端 SQL Server 資料庫下載資料,並且將資料儲存在本機 SQL Server Compact 資料庫的單一資料表中。

命名空間:  System.Data.SqlServerCe
組件:  System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)

語法

'宣告
Public Sub Pull ( _
    localTableName As String, _
    sqlSelectString As String, _
    oleDBConnectionString As String, _
    trackOption As RdaTrackOption _
)
'用途
Dim instance As SqlCeRemoteDataAccess
Dim localTableName As String
Dim sqlSelectString As String
Dim oleDBConnectionString As String
Dim trackOption As RdaTrackOption

instance.Pull(localTableName, sqlSelectString, _
    oleDBConnectionString, trackOption)
public void Pull(
    string localTableName,
    string sqlSelectString,
    string oleDBConnectionString,
    RdaTrackOption trackOption
)
public:
void Pull(
    String^ localTableName, 
    String^ sqlSelectString, 
    String^ oleDBConnectionString, 
    RdaTrackOption trackOption
)
member Pull : 
        localTableName:string * 
        sqlSelectString:string * 
        oleDBConnectionString:string * 
        trackOption:RdaTrackOption -> unit 
public function Pull(
    localTableName : String, 
    sqlSelectString : String, 
    oleDBConnectionString : String, 
    trackOption : RdaTrackOption
)

參數

  • localTableName
    型別:System.String
    SQL Server Compact 資料表的名稱,此資料表將接收擷取的 SQL Server 資料錄。如果資料表已經存在,便會發生錯誤。
  • sqlSelectString
    型別:System.String
    任何有效的 Transact-SQL 陳述式 (包括 SELECT 陳述式和預存程序),這種陳述式會指定要從 SQL Server 資料庫中擷取哪些資料表、資料行和資料錄,以便儲存於 SQL Server Compact 資料庫中。
  • trackOption
    型別:System.Data.SqlServerCe.RdaTrackOption
    這個選項會指出 SQL Server Compact 是否要追蹤對提取之資料表所做的變更,以及是否要將提取之資料表上的索引傳到具有 PRIMARY KEY 條件約束的裝置。

請參閱

參考

SqlCeRemoteDataAccess 類別

Pull 多載

System.Data.SqlServerCe 命名空間