ForeignKey 构造函数 (Table, String)
Initializes a new instance of the ForeignKey class on the specified table with the specified name.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub New ( _
table As Table, _
name As String _
)
用法
Dim table As Table
Dim name As String
Dim instance As New ForeignKey(table, name)
public ForeignKey(
Table table,
string name
)
public:
ForeignKey(
Table^ table,
String^ name
)
new :
table:Table *
name:string -> ForeignKey
public function ForeignKey(
table : Table,
name : String
)
参数
- table
类型:Microsoft.SqlServer.Management.Smo.Table
A Table object value that specifies the table on which to create the foreign key.
- name
类型:System.String
A String value that specifies the name of the foreign key.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间