Condividi tramite


SqlCeConnection.DataSource Property

Ottiene il nome file dell'origine dati.

Spazio dei nomi: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

Sintassi

'Dichiarazione
Public Overrides ReadOnly Property DataSource As String
public override string DataSource { get; }
public:
virtual property String^ DataSource {
    String^ get () override;
}
/** @property */
public String get_DataSource ()
public override function get DataSource () : String

Valore proprietà

Il percorso e il nome file dell’origine dati. Il valore predefinito è una stringa vuota.

Osservazioni

In SQL Server Compact 3.5 la proprietà DataSource viene restituita come percorso completo del file di database, ad esempio "\my app\myDB.sdf". In SQL Server Compact 3.5 i database vengono sempre archiviati in file distinti.

Affidabilità

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono affidabili. Non è invece garantita l'affidabilità dei membri dell'istanza.

Piattaforme

Piattaforme di sviluppo

Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Informazioni sulla versione
.NET Framework e .NET Compact Framework
Supportato in 3.5
.NET Framework
Supportato in 3.0
.NET Compact Framework e .NET Framework
Supportato in 2.0

Vedere anche

Riferimento

SqlCeConnection Class
SqlCeConnection Members
System.Data.SqlServerCe Namespace
SqlCeConnection.ConnectionTimeout Property
SqlCeConnection.Database Property
SqlCeConnection.ConnectionString Property