Membres LogFile
The LogFile object represents a SQL Server log file.
Le type LogFile expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
LogFile() () () () | Initializes a new instance of the LogFile class. | |
LogFile(Database, String) | Initializes a new instance of the LogFile class for the specified database and that has the specified name. | |
LogFile(Database, String, String) | Initializes a new instance of the LogFile class for the specified database and that has the specified name and physical file name. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
AddDatabaseContext | (Hérité de SqlSmoObject.) | |
Alter | Updates any property changes to the object to the instance of Microsoft SQL Server. (Hérité de DatabaseFile.) | |
AlterImpl | (Hérité de SqlSmoObject.) | |
AlterImplFinish | (Hérité de SqlSmoObject.) | |
AlterImplInit | (Hérité de SqlSmoObject.) | |
AlterImplWorker | (Hérité de SqlSmoObject.) | |
BindDefaultImpl | (Hérité de SqlSmoObject.) | |
BindRuleImpl | (Hérité de SqlSmoObject.) | |
CheckCollation | (Hérité de SqlSmoObject.) | |
CheckObjectState() () () () | Validates the state of the referenced object. (Hérité de SqlSmoObject.) | |
CheckObjectState(Boolean) | Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Hérité de SqlSmoObject.) | |
CheckObjectStateImpl | (Hérité de SqlSmoObject.) | |
CheckVersion100 | (Hérité de SqlSmoObject.) | |
CheckVersion80 | Checks the validity of the object on SQL Server 2000. (Hérité de SqlSmoObject.) | |
CheckVersion80SP3 | Checks the validity of the object on SQL Server 2000 SP3. (Hérité de SqlSmoObject.) | |
CheckVersion90 | Check the validity of the object on SQL Server 2005. (Hérité de SqlSmoObject.) | |
CheckVersionBelow90 | (Hérité de SqlSmoObject.) | |
CleanObject | (Hérité de SqlSmoObject.) | |
Create | Creates a log file on the instance of SQL Server as defined by the LogFile object. | |
CreateImpl | (Hérité de SqlSmoObject.) | |
CreateImplFinish | (Hérité de SqlSmoObject.) | |
CreateImplInit | (Hérité de SqlSmoObject.) | |
Discover | (Hérité de SqlSmoObject.) | |
Drop | Drops a database file. (Hérité de DatabaseFile.) | |
DropImpl | (Hérité de SqlSmoObject.) | |
DropImplWorker | (Hérité de SqlSmoObject.) | |
EnumScriptImpl | (Hérité de SqlSmoObject.) | |
EnumScriptImplWorker | (Hérité de SqlSmoObject.) | |
Equals | (Hérité de Object.) | |
Finalize | (Hérité de Object.) | |
FormatSqlVariant | (Hérité de SqlSmoObject.) | |
GenerateDataSpaceFileStreamScript | (Hérité de SqlSmoObject.) | |
GenerateDataSpaceScript | (Hérité de SqlSmoObject.) | |
GetBindDefaultScript | (Hérité de SqlSmoObject.) | |
GetBindRuleScript | (Hérité de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Hérité de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Hérité de SqlSmoObject.) | |
GetDateTimeParameter | (Hérité de SqlSmoObject.) | |
GetDateTimeParameterAsInt | (Hérité de SqlSmoObject.) | |
GetDBName | Gets the database name that is associated with the object. (Hérité de SqlSmoObject.) | |
GetEnumParameter | (Hérité de SqlSmoObject.) | |
GetFragOptionString | (Hérité de SqlSmoObject.) | |
GetGuidParameter | (Hérité de SqlSmoObject.) | |
GetHashCode | (Hérité de Object.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Hérité de SqlSmoObject.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Hérité de SqlSmoObject.) | |
GetPropValue | (Hérité de SqlSmoObject.) | |
GetPropValueOptional | (Hérité de SqlSmoObject.) | |
GetPropValueOptionalAllowNull | (Hérité de SqlSmoObject.) | |
GetRealValue | (Hérité de SqlSmoObject.) | |
GetScriptingOptionsForCreate | (Hérité de SqlSmoObject.) | |
GetServerName | Gets the name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.) | |
GetServerObject | (Hérité de SqlSmoObject.) | |
GetSqlServerVersionName | Gets the version name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Hérité de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Hérité de SqlSmoObject.) | |
GetTimeSpanParameterAsInt | (Hérité de SqlSmoObject.) | |
GetType | (Hérité de Object.) | |
GetUrnRecursive(StringBuilder) | (Hérité de SqlSmoObject.) | |
GetUrnRecursive(StringBuilder, UrnIdOption) | (Hérité de SqlSmoObject.) | |
ImplInitialize | (Hérité de SqlSmoObject.) | |
Initialize() () () () | Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.) | |
Initialize(Boolean) | Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.) | |
IsObjectDirty | Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server. (Hérité de SqlSmoObject.) | |
IsObjectInitialized | Verifies whether the object has been initialized. (Hérité de SqlSmoObject.) | |
IsObjectInSpace | Verifies whether the object is isolated or connected to the instance of SQL Server. (Hérité de SqlSmoObject.) | |
IsVersion80SP3 | (Hérité de SqlSmoObject.) | |
MarkDropped | (Hérité de SqlSmoObject.) | |
MarkForDrop | Marks the database file to be dropped next time its parent object is altered by the Alter method. (Hérité de DatabaseFile.) | |
MarkForDropImpl | (Hérité de SqlSmoObject.) | |
MemberwiseClone | (Hérité de Object.) | |
PostAlter | (Hérité de SqlSmoObject.) | |
PostCreate | (Hérité de SqlSmoObject.) | |
PostDrop | (Hérité de SqlSmoObject.) | |
Refresh | Refreshes the object and retrieves properties when the object is next accessed. (Hérité de SqlSmoObject.) | |
Rename | Renames a database file. (Hérité de DatabaseFile.) | |
RenameImpl | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.) | |
RenameImplWorker | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.) | |
ScriptAlter | (Hérité de DatabaseFile.) | |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.) | |
ScriptCreate | (Hérité de SqlSmoObject.) | |
ScriptDdl | (Hérité de SqlSmoObject.) | |
ScriptDrop | (Hérité de DatabaseFile.) | |
ScriptImpl() () () () | (Hérité de SqlSmoObject.) | |
ScriptImpl(ScriptingOptions) | (Hérité de SqlSmoObject.) | |
ScriptImplWorker | (Hérité de SqlSmoObject.) | |
ScriptRename | (Hérité de DatabaseFile.) | |
SetParentImpl | (Hérité de SqlSmoObject.) | |
Shrink | Shrinks a database file. (Hérité de DatabaseFile.) | |
ToString | Returns a String that represents the referenced object. (Hérité de SqlSmoObject.) | |
TouchImpl | (Hérité de SqlSmoObject.) | |
UnbindDefaultImpl | (Hérité de SqlSmoObject.) | |
UnbindRuleImpl | (Hérité de SqlSmoObject.) | |
Validate | (Hérité de SmoObjectBase.) |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Hérité de SqlSmoObject.) | |
FileName | Gets or sets the file name of the log file. | |
Growth | Gets or sets the growth increment for the log file in KB or percent. | |
GrowthType | Gets or sets the growth type for the data file in KB or percent. | |
ID | Gets the ID value that uniquely identifies the log file. | |
IsOffline | Gets the Boolean value that specifies whether the log file is offline or not. | |
IsReadOnly | Gets the Boolean value that specifies whether the log file is read-only or can be updated. | |
IsReadOnlyMedia | Gets the Boolean value that specifies whether the log file is stored on read-only media. | |
IsSparse | Gets the Boolean value that specifies whether the file is a sparse file. Sparse files are used in database snapshots. | |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Hérité de SqlSmoObject.) | |
MaxSize | Gets or set the maximum size to which the file can grow, in MB. | |
Name | Gets or sets the name of the object. (Hérité de NamedSmoObject.) | |
ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Hérité de SqlSmoObject.) | |
Parent | Gets or sets the Database object that is the parent of the LogFile object. | |
Properties | Gets a collection of Property objects that represent the object properties. (Hérité de SqlSmoObject.) | |
ScalarResult | Gets the scalar result for the referenced object. (Hérité de SqlSmoObject.) | |
Size | Gets or sets the current size of the log file, in KB. | |
State | Gets the state of the referenced object. (Hérité de SmoObjectBase.) | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Hérité de SqlSmoObject.) | |
UsedSpace | Gets the amount of used space in the log file in KB. | |
UserData | Gets or sets user-defined data associated with the referenced object. (Hérité de SmoObjectBase.) |
Haut de la page
Événements
Nom | Description | |
---|---|---|
PropertyChanged | (Hérité de SqlSmoObject.) | |
PropertyMetadataChanged | (Hérité de SqlSmoObject.) |
Haut de la page
Implémentations d'interfaces explicites
Nom | Description | |
---|---|---|
IAlienObjectDiscover | (Hérité de SqlSmoObject.) | |
IAlienObjectGetParent | (Hérité de SqlSmoObject.) | |
IAlienObjectGetProperty | (Hérité de SqlSmoObject.) | |
ISfcPropertyProviderGetPropertySet | (Hérité de SqlSmoObject.) | |
IAlienObjectGetUrn | (Hérité de SqlSmoObject.) | |
IAlienObjectResolve | (Hérité de SqlSmoObject.) | |
IAlienObjectSetProperty | (Hérité de SqlSmoObject.) |
Haut de la page