ApplicationDatabaseOptions.ApplicationDatabaseLogFiles Property
Represents the collection of log files for an application.
Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
Public ReadOnly Property ApplicationDatabaseLogFiles As ApplicationDatabaseLogFileCollection
public ApplicationDatabaseLogFileCollection ApplicationDatabaseLogFiles { get; }
public:
property ApplicationDatabaseLogFileCollection^ ApplicationDatabaseLogFiles {
ApplicationDatabaseLogFileCollection^ get ();
}
/** @property */
public ApplicationDatabaseLogFileCollection get_ApplicationDatabaseLogFiles ()
public function get ApplicationDatabaseLogFiles () : ApplicationDatabaseLogFileCollection
Valore proprietà
An ApplicationDatabaseLogFileCollection. Use this collection to add and remove ApplicationDatabaseLogFile objects.
Osservazioni
Each ApplicationDatabaseLogFile must be unique within the application.
Esempio
The following examples show how to a define log file for the application database and then add the log file using the ApplicationDatabaseLogFiles property:
ApplicationDatabaseLogFile adb_log =
new ApplicationDatabaseLogFile(adb, "MyApp_LogFile1");
adb_log.FileName = @"C:\NS\Full\MyApp_LogFile1.ldf";
adb_log.InitialSize = "5MB";
adb_log.MaxSize = "20MB";
adb_log.GrowthIncrement = "10%";
adb.ApplicationDatabaseLogFiles.Add(adb_log);
Dim adb_log As ApplicationDatabaseLogFile = _
New ApplicationDatabaseLogFile(adb, "MyApp_LogFile1")
adb_log.FileName = "C:\NS\Full\MyApp_LogFile1.ldf"
adb_log.InitialSize = "5MB"
adb_log.MaxSize = "20MB"
adb_log.GrowthIncrement = "10%"
adb.ApplicationDatabaseLogFiles.Add(adb_log)
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
ApplicationDatabaseOptions Class
ApplicationDatabaseOptions Members
Microsoft.SqlServer.Management.Nmo Namespace