DataFile.IsReadOnly プロパティ

データ ファイルが読み取り専用であるか更新可能であるかを示す Boolean プロパティ値を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsReadOnly As Boolean 
    Get
'使用
Dim instance As DataFile 
Dim value As Boolean 

value = instance.IsReadOnly
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsReadOnly { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsReadOnly {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsReadOnly : bool
function get IsReadOnly () : boolean

プロパティ値

型: System.Boolean
データ ファイルが読み取り専用であるか更新可能であるかを示す Boolean 値。 True の場合、データ ファイルは読み取り専用です。False (既定値) の場合、データ ファイルは更新可能です。

使用例

ファイルとファイル グループを使用したデータの格納

関連項目

参照

DataFile クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

ファイルとファイル グループのアーキテクチャ

CREATE DATABASE (Transact-SQL)