EnumForeignKeys 方法

Enumerates a list of primary keys in which the table is referenced as a foreign key.

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

语法

声明
Public Function EnumForeignKeys As DataTable
用法
Dim instance As Table
Dim returnValue As DataTable

returnValue = instance.EnumForeignKeys()
public DataTable EnumForeignKeys()
public:
DataTable^ EnumForeignKeys()
member EnumForeignKeys : unit -> DataTable 
public function EnumForeignKeys() : DataTable

返回值

类型:System.Data. . :: . .DataTable
A DataTable system object value that contains a list of information about where this table is referenced as a foreign key. The table describes the different columns of the returned DataTable.

Column

Data type

Description

Table_Schema

String

The name of the schema associated with the table that contains the foreign key.

Table_Name

String

The name of the table that contains the foreign key.

Name

String

The name of the foreign key.