共用方式為


SqlCeReplication 建構函式 (String, String, String, String, String, String, String, String, String, String)

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

[安全性關鍵]

初始化 SqlCeReplication 物件的新執行個體,並設定用來連接至發行集的屬性。

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

語法

'宣告
Public Sub New ( _
    internetUrl As String, _
    internetLogin As String, _
    internetPassword As String, _
    publisher As String, _
    publisherDatabase As String, _
    publisherLogin As String, _
    publisherPassword As String, _
    publication As String, _
    subscriber As String, _
    subscriberConnectionString As String _
)
'用途
Dim internetUrl As String
Dim internetLogin As String
Dim internetPassword As String
Dim publisher As String
Dim publisherDatabase As String
Dim publisherLogin As String
Dim publisherPassword As String
Dim publication As String
Dim subscriber As String
Dim subscriberConnectionString As String

Dim instance As New SqlCeReplication(internetUrl, _
    internetLogin, internetPassword, _
    publisher, publisherDatabase, publisherLogin, _
    publisherPassword, publication, _
    subscriber, subscriberConnectionString)
public SqlCeReplication(
    string internetUrl,
    string internetLogin,
    string internetPassword,
    string publisher,
    string publisherDatabase,
    string publisherLogin,
    string publisherPassword,
    string publication,
    string subscriber,
    string subscriberConnectionString
)
public:
SqlCeReplication(
    String^ internetUrl, 
    String^ internetLogin, 
    String^ internetPassword, 
    String^ publisher, 
    String^ publisherDatabase, 
    String^ publisherLogin, 
    String^ publisherPassword, 
    String^ publication, 
    String^ subscriber, 
    String^ subscriberConnectionString
)
new : 
        internetUrl:string * 
        internetLogin:string * 
        internetPassword:string * 
        publisher:string * 
        publisherDatabase:string * 
        publisherLogin:string * 
        publisherPassword:string * 
        publication:string * 
        subscriber:string * 
        subscriberConnectionString:string -> SqlCeReplication
public function SqlCeReplication(
    internetUrl : String, 
    internetLogin : String, 
    internetPassword : String, 
    publisher : String, 
    publisherDatabase : String, 
    publisherLogin : String, 
    publisherPassword : String, 
    publication : String, 
    subscriber : String, 
    subscriberConnectionString : String
)

參數

  • internetUrl
    型別:System.String
    用於連接到 SQL Server Compact 伺服器代理程式的 URL。
  • internetLogin
    型別:System.String
    連接到 SQL Server Compact 伺服器代理程式時使用的登入名稱。
  • internetPassword
    型別:System.String
    連接到 SQL Server Compact 伺服器代理程式時使用的密碼。
  • publisherDatabase
    型別:System.String
    發行集資料庫的名稱。
  • publisherLogin
    型別:System.String
    連接至「發行者」時使用的登入名稱。
  • publisherPassword
    型別:System.String
    連接至「發行者」時使用的登入密碼。
  • publication
    型別:System.String
    已經針對匿名合併訂閱啟用的發行集名稱。
  • subscriberConnectionString
    型別:System.String
    SQL Server Compact 資料庫在 Windows Mobile 裝置上的 OLE DB 連接字串。

請參閱

參考

SqlCeReplication 類別

SqlCeReplication 多載

System.Data.SqlServerCe 命名空間