Méthode SqlCeRemoteDataAccess.Pull (String, String, String, RdaTrackOption)

Ce type a un attribut SecurityCriticalAttribute qui le limite à une utilisation interne par la bibliothèque de classes du .NET Framework pour Silverlight. Le code d'application qui utilise un membre de ce type lève un MethodAccessException.

[INFORMATIONS CRITIQUES DE SÉCURITÉ]

Télécharge les données d'une base de données SQL Server distante et stocke ces données dans une seule table d'une base de données SQL Server Compact locale.

Espace de noms :  System.Data.SqlServerCe
Assembly :  System.Data.SqlServerCe (en System.Data.SqlServerCe.dll)

Syntaxe

'Déclaration
Public Sub Pull ( _
    localTableName As String, _
    sqlSelectString As String, _
    oleDBConnectionString As String, _
    trackOption As RdaTrackOption _
)
'Utilisation
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
)

Paramètres

  • localTableName
    Type : System.String
    Nom de la table SQL Server Compact qui recevra les enregistrements SQL Server extraits. Une erreur se produit si la table existe déjà.
  • sqlSelectString
    Type : System.String
    Toute instruction Transact-SQL valide, notamment les instructions SELECT et les procédures stockées, qui spécifie la table, les colonnes et les enregistrements à extraire de la base de données SQL Server en vue de leur stockage dans la base de données SQL Server Compact.
  • trackOption
    Type : System.Data.SqlServerCe.RdaTrackOption
    Option indiquant si SQL Server Compact assure le suivi des modifications apportées à la table extraite et si les index qui existent sur la table en cours d'extraction sont transmis au périphérique avec les contraintes PRIMARY KEY.

Voir aussi

Référence

SqlCeRemoteDataAccess Classe

Surcharge Pull

Espace de noms System.Data.SqlServerCe