次の方法で共有


ScriptingOptions.DriAll プロパティ

すべての DRI オブジェクトを、生成されるスクリプトに含めるかどうかを示す Boolean プロパティ値を取得または設定します。

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

構文

'宣言
Public Property DriAll As Boolean 
    Get 
    Set
'使用
Dim instance As ScriptingOptions 
Dim value As Boolean 

value = instance.DriAll

instance.DriAll = value
public bool DriAll { get; set; }
public:
property bool DriAll {
    bool get ();
    void set (bool value);
}
member DriAll : bool with get, set
function get DriAll () : boolean 
function set DriAll (value : boolean)

プロパティ値

型: System.Boolean
すべての DRI オブジェクトをスクリプトに含めるかどうかを示す Boolean 値です。 True の場合、宣言参照整合性が適用されたすべてのオブジェクトが、スクリプトに含まれます。False (既定値) の場合、宣言参照整合性が適用されたキー オブジェクトはスクリプトに含まれません。

説明

値は、論理 OR 演算子を使用して結合されます。

使用例

次のコード例では、すべての DRI オブジェクトをスクリプトに含めるように指定します。

Visual Basic

Dim scOps As New ScriptingOptions()
scOps.DriAll = true

PowerShell

$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.DriAll = $TRUE

関連項目

参照

ScriptingOptions クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

スクリプト