Condividi tramite


SqlCeReplication.SubscriberConnectionString Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Specifies the OLE DB connection string for the SQL Server CE database on the Windows CE .NET-based device.

  [Visual Basic]
  Public Property SubscriberConnectionString As String
[C#]
public string SubscriberConnectionString {get; set;}
[C++]
public: __property String* get_SubscriberConnectionString();
public: __property void set_SubscriberConnectionString(String*);
[JScript]
public function get SubscriberConnectionString() : String;
public function set SubscriberConnectionString(String);

Property Value

The OLE DB connection string for the SQL Server CE database.

Remarks

The SubscriberConnectionString property supports the following OLE DB connection properties. All other connection properties are ignored.

Property Description
Provider Optional. Specifies the name of the data source provider. If the provider is not specified, Microsoft.sqlserver.oledb.ce.2.0 is assumed.
Data Source Required. Indicates the name of the database. By convention, you should give your SQL Server CE database the file extension .sdf.
Locale Identifier Optional. Indicates the database locale, which specifies the collation order for string comparisons in the database. This property is only meaningful when calling AddSubscription using the CreateDatabase constant. The default database locale is Latin1_General (0x00000409).
SSCE:Database Password Optional. Indicates the database password. This property must be specified if the database was created with a password. To create a database with a password, set this property and call AddSubscription with the CreateDatabase constant.
SSCE:Encrypt Database Optional. Indicates whether a newly created database should be encrypted. This property is only meaningful when calling AddSubscription with the CreateDatabase constant. The created database is encrypted when this Boolean property is TRUE and SSCE:Database Password is specified.

Locale Identifier values are supported when creating a new database using the AddSubscription method. Use the Unique LCID for the value of Locale Identifier. To find a list of Unique LCID values, see the Collate topic in the SQL Reference section of the SQL Server CE Books Online. You must ensure that the locale is supported on the device on which the database is being created.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeReplication Class | SqlCeReplication Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.