Share via


ListKeys Method

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The ListKeys method returns a SQLObjectList object that enumerates the PRIMARY KEY and FOREIGN KEY constraints in which a column participates.

Syntax

object.ListKeys()asSQLObjectList

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT ListKeys(
LPSQLDMOKEYLIST* ppList);

Returns

A SQLObjectList object that contains 0 or more Key objects.

Applies To: