Share via


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

此型別具有 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 _
)
'用途
Dim instance As SqlCeRemoteDataAccess
Dim localTableName As String
Dim sqlSelectString As String
Dim oleDBConnectionString As String

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

參數

  • localTableName
    型別:System.String
    SQL Server Compact 資料表的名稱,此資料表將接收擷取的 SQL Server 資料錄。如果資料表已經存在,便會發生錯誤。
  • sqlSelectString
    型別:System.String
    任何有效的 Transact-SQL 陳述式 (包括 SELECT 陳述式和預存程序),這種陳述式會指定要從 SQL Server 資料庫中擷取哪些資料表、資料行和資料錄,以便儲存於 SQL Server Compact 資料庫中。

請參閱

參考

SqlCeRemoteDataAccess 類別

Pull 多載

System.Data.SqlServerCe 命名空間