ScriptingOptions.EnforceScriptingOptions 속성
Gets or sets the Boolean property value that specifies whether the application of all scripting options is enforced for text-based objects, such as SchemaQualify.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Property EnforceScriptingOptions As Boolean
Get
Set
‘사용 방법
Dim instance As ScriptingOptions
Dim value As Boolean
value = instance.EnforceScriptingOptions
instance.EnforceScriptingOptions = value
public bool EnforceScriptingOptions { get; set; }
public:
property bool EnforceScriptingOptions {
bool get ();
void set (bool value);
}
member EnforceScriptingOptions : bool with get, set
function get EnforceScriptingOptions () : boolean
function set EnforceScriptingOptions (value : boolean)
속성 값
유형: System.Boolean
A Boolean value that specifies whether the application of all scripting options is enforced for text-based objects.If True, the application of all scripting options is enforced for text-based objects.If False (default), object text is scripted without any modification.
주의
Text-based objects will lose any comments and formatting, because the object will be constructed based on metadata.
예
The following code example specifies that the application of scripting options will be enforced for text-based objects.
Visual Basic
Dim scOps As New ScriptingOptions()
scOps.EnforceScriptingOptions = true
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.EnforceScriptingOptions = $TRUE
참고 항목
참조
Microsoft.SqlServer.Management.Smo 네임스페이스