DataFile.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.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property IsPrimaryFile As Boolean 
    Get 
    Set
‘사용 방법
Dim instance As DataFile 
Dim value As Boolean 

value = instance.IsPrimaryFile

instance.IsPrimaryFile = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public bool IsPrimaryFile { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property bool IsPrimaryFile {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
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.

파일 그룹 및 파일을 사용하여 데이터 저장

참고 항목

참조

DataFile 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

파일 및 파일 그룹 아키텍처

CREATE DATABASE(Transact-SQL)