Share via


SchemaDeployment.SetDeployToScript Method

Call this method after you load a deployment manifest to override whether a deployment script is generated. If the first parameter is set to true, any parent directory that is specified in scriptPath must exist.

Namespace:  Microsoft.Data.Schema.Build
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Sub SetDeployToScript ( _
    deployToScript As Boolean, _
    scriptPath As String _
)
public void SetDeployToScript(
    bool deployToScript,
    string scriptPath
)
public:
void SetDeployToScript(
    bool deployToScript, 
    String^ scriptPath
)
member SetDeployToScript : 
        deployToScript:bool * 
        scriptPath:string -> unit 
public function SetDeployToScript(
    deployToScript : boolean, 
    scriptPath : String
)

Parameters

  • scriptPath
    Type: System.String
    If deployToScript is true, contains the path of the script file.

Exceptions

Exception Condition
ArgumentNullException

The deployToScript parameter is true and the scriptPath property is nulla null reference (Nothing in Visual Basic) or empty.

.NET Framework Security

See Also

Reference

SchemaDeployment Class

Microsoft.Data.Schema.Build Namespace