Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Initializes a new instance of the SqlCeConnection class with the specified connection string.
[Visual Basic] Public Sub New( _ ByVal connectionString As String _ ) [C#] public SqlCeConnection( string connectionString ); [C++] public: SqlCeConnection( String* connectionString ); [JScript] public function SqlCeConnection( connectionString : String);
Parameters
- connectionString
The connection used to open the database.
Remarks
When a new instance of SqlCeConnection is created, the read/write properties are set to the following initial values unless they are set specifically by using their associated keywords in the ConnectionString property.
| Properties | Initial Value |
|---|---|
| ConnectionString | connectionString |
| DataSource | empty string ("") |
You can change the value for these properties only by using the ConnectionString property.
Requirements
Platforms: .NET Compact Framework
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
SqlCeConnection Class | SqlCeConnection Members | System.Data.SqlServerCe Namespace | SqlCeConnection Constructor Overload List
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.