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
- deployToScript
Type: System.Boolean
true to deploy to script.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.