IsPrimaryFile 属性
Gets the Boolean property value that specifies whether the data file is the primary file of the database.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property IsPrimaryFile As Boolean
Get
Set
用法
Dim instance As DataFile
Dim value As Boolean
value = instance.IsPrimaryFile
instance.IsPrimaryFile = value
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public bool IsPrimaryFile { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property bool IsPrimaryFile {
bool get ();
void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
member IsPrimaryFile : bool with get, set
function get IsPrimaryFile () : boolean
function set IsPrimaryFile (value : boolean)
属性值
类型:System. . :: . .Boolean
A Boolean value that specifies whether the data file is the primary file or a secondary file.
If True, the data file the primary file. Otherwise, False (default).
注释
The primary file has an .mdf file extension and secondary files have an .ndf file extension.