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.

示例

脚本撰写