IsPrimaryFile プロパティ
データ ファイルがデータベースのプライマリ ファイルかどうかを示す Boolean プロパティ値を取得します。
名前空間: 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
データ ファイルがプライマリ ファイルか、セカンダリ ファイルかを示す Boolean 値。
True の場合、データ ファイルはプライマリ ファイルです。False (既定値) の場合、データ ファイルはセカンダリ ファイルです。
説明
プライマリ ファイルには、ファイル拡張子として .mdf が付きます。セカンダリ ファイルには、ファイル拡張子として .ndf が付きます。