SqlCeRemoteDataAccess クラス
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)

Public NotInheritable Class SqlCeRemoteDataAccess Implements IDisposable
public sealed class SqlCeRemoteDataAccess : IDisposable
public final class SqlCeRemoteDataAccess implements IDisposable
public final class SqlCeRemoteDataAccess implements IDisposable

SqlCeRemoteDataAccess オブジェクトの新しいインスタンスを初期化する方法を次の例に示します。
' Connection String to the SQL Server ' Dim rdaOleDbConnectString As String = "Data Source=MySqlServer;Initial Catalog=AdventureWorks; " & _ "User Id=username;Password = <password>" ' Initialize RDA Object ' Dim rda As SqlCeRemoteDataAccess = Nothing Try ' Try the Pull Operation ' rda = New SqlCeRemoteDataAccess( _ "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll", _ "MyLogin", _ "<password>", _ "Data Source=MyDatabase.sdf") rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString, _ RdaTrackOption.TrackingOnWithIndexes, "ErrorTable") ' or, try one of these overloads: ' rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString, _ ' RdaTrackOption.TrackingOnWithIndexes) ' ' rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString) Catch ' Handle errors here ' Finally ' Dispose of the RDA object ' rda.Dispose() End Try
// Connection String to the SQL Server // string rdaOleDbConnectString = "Data Source=MySqlServer;Initial Catalog=AdventureWorks; " + "User Id=username;Password = <password>"; // Initialize RDA Object // SqlCeRemoteDataAccess rda = null; try { // Try the Pull Operation // rda = new SqlCeRemoteDataAccess( "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll" , "MyLogin", "<password>", "Data Source=MyDatabase.sdf"); rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString , RdaTrackOption.TrackingOnWithIndexes, "ErrorTable"); // or, try one of these overloads: // // rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString, // RdaTrackOption.TrackingOnWithIndexes); // // rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString); } catch (SqlCeException) { // Handle errors here // } finally { // Dispose of the RDA object // rda.Dispose(); }

System.Data.InternalDataCollectionBase
System.Data.SqlServerCe.SqlCeRemoteDataAccess


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SqlCeRemoteDataAccess コンストラクタ ()
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)



SqlCeRemoteDataAccess オブジェクトの新しいインスタンスを初期化する方法を次の例に示します。
' Connection String to the SQL Server ' Dim rdaOleDbConnectString As String = "Data Source=MySqlServer;Initial Catalog=AdventureWorks; " & _ "User Id=username;Password = <password>" ' Initialize RDA Object ' Dim rda As SqlCeRemoteDataAccess = Nothing Try ' Try the Pull Operation ' rda = New SqlCeRemoteDataAccess( _ "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll", _ "MyLogin", _ "<password>", _ "Data Source=MyDatabase.sdf") rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString, _ RdaTrackOption.TrackingOnWithIndexes, "ErrorTable") ' or, try one of these overloads: ' rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString, _ ' RdaTrackOption.TrackingOnWithIndexes) ' ' rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString) Catch ' Handle errors here ' Finally ' Dispose of the RDA object ' rda.Dispose() End Try
// Connection String to the SQL Server // string rdaOleDbConnectString = "Data Source=MySqlServer;Initial Catalog=AdventureWorks; " + "User Id=username;Password = <password>"; // Initialize RDA Object // SqlCeRemoteDataAccess rda = null; try { // Try the Pull Operation // rda = new SqlCeRemoteDataAccess( "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll" , "MyLogin", "<password>", "Data Source=MyDatabase.sdf"); rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString , RdaTrackOption.TrackingOnWithIndexes, "ErrorTable"); // or, try one of these overloads: // // rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString, // RdaTrackOption.TrackingOnWithIndexes); // // rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString); } catch (SqlCeException) { // Handle errors here // } finally { // Dispose of the RDA object // rda.Dispose(); }


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SqlCeRemoteDataAccess コンストラクタ (String, String, String, String)
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)

Public Sub New ( _ internetUrl As String, _ internetLogin As String, _ internetPassword As String, _ localConnectionString As String _ )
Dim internetUrl As String Dim internetLogin As String Dim internetPassword As String Dim localConnectionString As String Dim instance As New SqlCeRemoteDataAccess(internetUrl, internetLogin, internetPassword, localConnectionString)
public SqlCeRemoteDataAccess ( string internetUrl, string internetLogin, string internetPassword, string localConnectionString )
public: SqlCeRemoteDataAccess ( String^ internetUrl, String^ internetLogin, String^ internetPassword, String^ localConnectionString )
public SqlCeRemoteDataAccess ( String internetUrl, String internetLogin, String internetPassword, String localConnectionString )
public function SqlCeRemoteDataAccess ( internetUrl : String, internetLogin : String, internetPassword : String, localConnectionString : String )

このコンストラクタは InternetUrl、InternetLogin、InternetPassword、および LocalConnectionString の各プロパティを初期化します。それ以外のプロパティには、既定値が代入されます。後から、任意のプロパティの値を変更できます。

' Connection String to the SQL Server. Dim rdaOleDbConnectString As String = _ "Provider=sqloledb; Data Source=MySqlServer;Initial Catalog=Northwind; " + _ "User Id=username;Password = <password>" ' Initialize RDA Object. Dim rda As SqlCeRemoteDataAccess = Nothing Try 'Try the Pull Operation. rda = New SqlCeRemoteDataAccess() rda.InternetLogin = "MyLogin" rda.InternetPassword = "<password>" rda.InternetUrl = "<http://www.northwindtraders.com/sqlce/sscesa20.dll>" rda.LocalConnectionString = "Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=\ssce.sdf" rda.Pull("Employees", "Select * from Employees", _ rdaOleDbConnectString, _ RdaTrackOption.TrackingOnWithIndexes, _ "ErrorTable") Catch e As SqlCeException 'Use you own Error Handling Routine. 'ShowErrors(e); Finally 'Dispose of the RDA Object. rda.Dispose() End Try
// Connection String to the SQL Server. string rdaOleDbConnectString = "Provider=sqloledb; Data Source=MySqlServer;Initial Catalog=Northwind; " + "User Id=username;Password = <password>"; // Initialize RDA Object. SqlCeRemoteDataAccess rda = null; try { //Try the Pull Operation. rda = new SqlCeRemoteDataAccess(); rda.InternetLogin = "MyLogin"; rda.InternetPassword = "<password>"; rda.InternetUrl = "<http://www.northwindtraders.com/sqlce/sscesa20.dll>"; rda.LocalConnectionString = @"Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=\ssce.sdf"; rda.Pull( "Employees", "Select * from Employees", rdaOleDbConnectString, RdaTrackOption.TrackingOnWithIndexes , "ErrorTable"); } catch(SqlCeException) { //Use you own Error Handling Routine. } finally { //Dispose of the RDA Object. rda.Dispose(); }


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SqlCeRemoteDataAccess コンストラクタ (String, String)
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)

Dim internetUrl As String Dim localConnectionString As String Dim instance As New SqlCeRemoteDataAccess(internetUrl, localConnectionString)

このコンストラクタは InternetUrl プロパティと LocalConnectionString プロパティを初期化します。それ以外のプロパティには、既定値が代入されます。後から、任意のプロパティの値を変更できます。

' Connection String to the SQL Server. Dim rdaOleDbConnectString As String = _ "Provider=sqloledb; Data Source=MySqlServer;Initial Catalog=Northwind; " + _ "User Id=username;Password = <password>" ' Initialize RDA Object. Dim rda As SqlCeRemoteDataAccess = Nothing Try 'Try the Pull Operation. rda = New SqlCeRemoteDataAccess() rda.InternetLogin = "MyLogin" rda.InternetPassword = "<password>" rda.InternetUrl = "<http://www.northwindtraders.com/sqlce/sscesa20.dll>" rda.LocalConnectionString = "Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=\ssce.sdf" rda.Pull("Employees", "Select * from Employees", _ rdaOleDbConnectString, _ RdaTrackOption.TrackingOnWithIndexes, _ "ErrorTable") Catch e As SqlCeException 'Use you own Error Handling Routine. 'ShowErrors(e); Finally 'Dispose of the RDA Object. rda.Dispose() End Try
// Connection String to the SQL Server. string rdaOleDbConnectString = "Provider=sqloledb; Data Source=MySqlServer;Initial Catalog=Northwind; " + "User Id=username;Password = <password>"; // Initialize RDA Object. SqlCeRemoteDataAccess rda = null; try { //Try the Pull Operation. rda = new SqlCeRemoteDataAccess(); rda.InternetLogin = "MyLogin"; rda.InternetPassword = "<password>"; rda.InternetUrl = "<http://www.northwindtraders.com/sqlce/sscesa20.dll>"; rda.LocalConnectionString = @"Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=\ssce.sdf"; rda.Pull( "Employees", "Select * from Employees", rdaOleDbConnectString, RdaTrackOption.TrackingOnWithIndexes , "ErrorTable"); } catch(SqlCeException) { //Use you own Error Handling Routine. } finally { //Dispose of the RDA Object. rda.Dispose(); }


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SqlCeRemoteDataAccess コンストラクタ

名前 | 説明 |
---|---|
SqlCeRemoteDataAccess () | SqlCeRemoteDataAccess オブジェクトの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
SqlCeRemoteDataAccess (String, String) | SqlCeRemoteDataAccess オブジェクトの新しいインスタンスを初期化し、Microsoft Internet Information Services (IIS) への匿名アクセスを設定します。 .NET Compact Framework によってサポートされています。 |
SqlCeRemoteDataAccess (String, String, String, String) | SqlCeRemoteDataAccess オブジェクトの新しいインスタンスを初期化し、Microsoft インターネット インフォメーション サービス (IIS) に対する基本認証または統合 Windows 認証を設定します。 .NET Compact Framework によってサポートされています。 |

SqlCeRemoteDataAccess プロパティ
SqlCeRemoteDataAccess メソッド

名前 | 説明 | |
---|---|---|
![]() | Dispose | アンマネージ リソースをすべて解放します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | Pull | オーバーロードされます。 リモートの Microsoft SQL Server データベースからデータをダウンロードし、ローカルの Microsoft SQL Server Mobile データベース内の単一のテーブルに格納します。 |
![]() | Push | オーバーロードされます。 プルされ、追跡されている SQL Server Mobile のテーブルから元の SQL Server テーブルへ、変更を送り返します。これらの変更は、個々のトランザクションで、個別にサーバーに適用されます。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | SubmitSql | リモート サーバー上の Microsoft SQL Server データベースで実行する SQL ステートメントを送信します。 |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

SqlCeRemoteDataAccess メンバ
SqlCeRemoteDataAccess オブジェクトの新しいインスタンスを初期化します。リモート データ アクセスの詳細については、SQL Server Mobile Books Online を参照してください。
SqlCeRemoteDataAccess データ型で公開されるメンバを以下の表に示します。



名前 | 説明 | |
---|---|---|
![]() | Dispose | アンマネージ リソースをすべて解放します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | Pull | オーバーロードされます。 リモートの Microsoft SQL Server データベースからデータをダウンロードし、ローカルの Microsoft SQL Server Mobile データベース内の単一のテーブルに格納します。 |
![]() | Push | オーバーロードされます。 プルされ、追跡されている SQL Server Mobile のテーブルから元の SQL Server テーブルへ、変更を送り返します。これらの変更は、個々のトランザクションで、個別にサーバーに適用されます。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | SubmitSql | リモート サーバー上の Microsoft SQL Server データベースで実行する SQL ステートメントを送信します。 |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からSqlCeRemoteDataAccessを検索する場合は、下記のリンクをクリックしてください。

- SqlCeRemoteDataAccessのページへのリンク