SqlCeRemoteDataAccess コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SqlCeRemoteDataAccess コンストラクタの意味・解説 

SqlCeRemoteDataAccess コンストラクタ (String, String, String, String)

SqlCeRemoteDataAccess オブジェクト新しインスタンス初期化しMicrosoft インターネット インフォメーション サービス (IIS) に対す基本認証または統合 Windows 認証設定します

名前空間: System.Data.SqlServerCe
アセンブリ: 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

SQL Server Mobile サーバー エージェント接続するときに使用する URL

internetLogin

SQL Server Mobile サーバー エージェント接続するときに使用するログイン名。

internetPassword

SQL Server Mobile サーバー エージェント接続するときに使用するパスワード

localConnectionString

SQL Server Mobile データベース接続するための OLE DB 接続文字列

解説解説

このコンストラクタは 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();
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlCeRemoteDataAccess クラス
SqlCeRemoteDataAccess メンバ
System.Data.SqlServerCe 名前空間

SqlCeRemoteDataAccess コンストラクタ (String, String)

SqlCeRemoteDataAccess オブジェクト新しインスタンス初期化しMicrosoft Internet Information Services (IIS) への匿名アクセス設定します

名前空間: System.Data.SqlServerCe
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)
構文構文

Public Sub New ( _
    internetUrl As String, _
    localConnectionString As String _
)
Dim internetUrl As String
Dim localConnectionString As String

Dim instance As New SqlCeRemoteDataAccess(internetUrl,
 localConnectionString)
public SqlCeRemoteDataAccess (
    string internetUrl,
    string localConnectionString
)
public:
SqlCeRemoteDataAccess (
    String^ internetUrl, 
    String^ localConnectionString
)
public SqlCeRemoteDataAccess (
    String internetUrl, 
    String localConnectionString
)
public function SqlCeRemoteDataAccess (
    internetUrl : String, 
    localConnectionString : String
)

パラメータ

internetUrl

SQL Server Mobile サーバー エージェント接続するときに使用する URL

localConnectionString

SQL Server Mobile データベース接続するための OLE DB 接続文字列

解説解説
使用例使用例
' 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();
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlCeRemoteDataAccess クラス
SqlCeRemoteDataAccess メンバ
System.Data.SqlServerCe 名前空間

SqlCeRemoteDataAccess コンストラクタ


SqlCeRemoteDataAccess コンストラクタ ()

SqlCeRemoteDataAccess オブジェクト新しインスタンス初期化します。

名前空間: System.Data.SqlServerCe
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)
構文構文

Dim instance As New SqlCeRemoteDataAccess
public SqlCeRemoteDataAccess ()
public:
SqlCeRemoteDataAccess ()
public SqlCeRemoteDataAccess ()
public function SqlCeRemoteDataAccess ()
解説解説
使用例使用例

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();
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlCeRemoteDataAccess クラス
SqlCeRemoteDataAccess メンバ
System.Data.SqlServerCe 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SqlCeRemoteDataAccess コンストラクタ」の関連用語

SqlCeRemoteDataAccess コンストラクタのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SqlCeRemoteDataAccess コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS