SqlCeReplication.InternetPassword プロパティ
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)

Dim instance As SqlCeReplication Dim value As String value = instance.InternetPassword instance.InternetPassword = value
/** @property */ public String get_InternetPassword () /** @property */ public void set_InternetPassword (String value)
public function get InternetPassword () : String public function set InternetPassword (value : String)
インターネット インフォメーション サービス (IIS) のパスワード文字列。既定値はパスワードなしです。

SQL Server Mobile サーバー エージェントが基本認証または統合 Windows 認証を使用するように設定されている場合、InternetPassword プロパティは必須です。統合 Windows 認証を使用する場合、InternetPassword は、ネットワーク経由では渡されません。
基本認証を使用する場合は、SSL (Secure Sockets Layter) または PCT (Private Communication Technology) 暗号化を使用するように IIS を設定して、ユーザー パスワードを保護する必要があります。SSL または PCT 暗号化を使用せずに基本認証を使用すると、簡単に復号可能な形式でパスワードがネットワーク上に送信されます。これは危険なため、基本認証を使用する場合は、必ず SSL または PCT 暗号化を使用してパスワードを保護してください。

SqlCeReplication オブジェクトの InternetPassword プロパティを設定する例を次に示します。
Dim repl As SqlCeReplication = Nothing Try ' Instantiate and configure SqlCeReplication object ' repl = New SqlCeReplication() repl.InternetUrl = "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll" repl.InternetLogin = "MyInternetLogin" repl.InternetPassword = "<password>" repl.Publisher = "MyPublisher" repl.PublisherDatabase = "MyPublisherDatabase" repl.PublisherLogin = "MyPublisherLogin" repl.PublisherPassword = "<password>" repl.Publication = "MyPublication" repl.Subscriber = "MySubscriber" repl.SubscriberConnectionString = "Data Source=MyDatabase.sdf" ' Create the local SQL Mobile Database subscription ' repl.AddSubscription(AddOption.CreateDatabase) ' Synchronize to the SQL Server to populate the Subscription ' repl.Synchronize() Catch ' Handle errors here ' Finally ' Dispose the repl object ' repl.Dispose() End Try
SqlCeReplication repl = null; try { // Instantiate and configure SqlCeReplication object // repl = new SqlCeReplication(); repl.InternetUrl = "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll"; repl.InternetLogin = "MyInternetLogin"; repl.InternetPassword = "<password>"; repl.Publisher = "MyPublisher"; repl.PublisherDatabase = "MyPublisherDatabase"; repl.PublisherLogin = "MyPublisherLogin"; repl.PublisherPassword = "<password>"; repl.Publication = "MyPublication"; repl.Subscriber = "MySubscriber"; repl.SubscriberConnectionString = "Data Source=MyDatabase.sdf"; // Create a local SQL Mobile Database subscription // repl.AddSubscription(AddOption.CreateDatabase); // Synchronize to the SQL Server database // repl.Synchronize(); } catch (SqlCeException) { // Handle errors here // } finally { // Dispose the repl object // repl.Dispose(); }


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


Weblioに収録されているすべての辞書からSqlCeReplication.InternetPassword プロパティを検索する場合は、下記のリンクをクリックしてください。

- SqlCeReplication.InternetPassword プロパティのページへのリンク