ForeignKey.ScriptReferencedTableSchema 属性

Gets or sets the Boolean value that specifies whether to script the schema of the table referenced by the foreign key.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property ScriptReferencedTableSchema As String 
    Get 
    Set
用法
Dim instance As ForeignKey 
Dim value As String 

value = instance.ScriptReferencedTableSchema

instance.ScriptReferencedTableSchema = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string ScriptReferencedTableSchema { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property String^ ScriptReferencedTableSchema {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member ScriptReferencedTableSchema : string with get, set
function get ScriptReferencedTableSchema () : String 
function set ScriptReferencedTableSchema (value : String)

属性值

类型:System.String
A Boolean value that specifies whether to script the schema of table referenced by the foreign key.If True, the schema of the table referenced in the foreign key is included in scripting operations.If False (default), no attempt is made to include the schema of the table referenced by the foreign key in scripting operations.

示例

创建、更改和删除外键

请参阅

参考

ForeignKey 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

创建和修改 FOREIGN KEY 约束

CREATE TABLE (Transact-SQL)