DataFile 成員
The DataFile object represents a Microsoft SQL Server data file.
DataFile 型別公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
DataFile() () () () | Initializes a new instance of the DataFile class. | |
DataFile(FileGroup, String) | Initializes a new instance of the DataFile class on the specified file group with the specified name. | |
DataFile(FileGroup, String, String) | Initializes a new instance of the DataFile class on the specified file group with the specified name and file name. |
頂端
方法
頂端
屬性
名稱 | 描述 | |
---|---|---|
AvailableSpace | Gets the amount of available space in the data file in KB. | |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (繼承自 SqlSmoObject。) | |
FileName | Gets or sets the data file name. | |
Growth | Gets or sets the growth increment for the data file in KB or percent. | |
GrowthType | Gets or sets the growth type for the data file in kilobytes or percent. | |
ID | Gets the ID value that uniquely identifies the data file. | |
IsOffline | Gets the Boolean property value that specifies whether the data file is offline or not. | |
IsPrimaryFile | Gets the Boolean property value that specifies whether the data file is the primary file of the database. | |
IsReadOnly | Gets the Boolean property value that specifies whether the data file is read-only or can be updated. | |
IsReadOnlyMedia | Gets the Boolean property value that specifies whether the data 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. (繼承自 SqlSmoObject。) | |
MaxSize | Gets or set the maximum size to which the data file can grow in KB. | |
Name | Gets or sets the name of the object. (繼承自 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. (繼承自 SqlSmoObject。) | |
Parent | Gets or sets the FileGroup object that is the parent of the DataFile object. | |
Properties | Gets a collection of Property objects that represent the object properties. (繼承自 SqlSmoObject。) | |
ScalarResult | Gets the scalar result for the referenced object. (繼承自 SqlSmoObject。) | |
Size | Gets or sets the current size of the data file in KB. | |
State | Gets the state of the referenced object. (繼承自 SmoObjectBase。) | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (繼承自 SqlSmoObject。) | |
UsedSpace | Gets the amount of used space in the data file in KB. | |
UserData | Gets or sets user-defined data associated with the referenced object. (繼承自 SmoObjectBase。) |
頂端
明確繼承實作
名稱 | 描述 | |
---|---|---|
IAlienObjectDiscover | (繼承自 SqlSmoObject。) | |
IAlienObjectGetParent | (繼承自 SqlSmoObject。) | |
IAlienObjectGetProperty | (繼承自 SqlSmoObject。) | |
ISfcPropertyProviderGetPropertySet | (繼承自 SqlSmoObject。) | |
IAlienObjectGetUrn | (繼承自 SqlSmoObject。) | |
IAlienObjectResolve | (繼承自 SqlSmoObject。) | |
IAlienObjectSetProperty | (繼承自 SqlSmoObject。) |
頂端