次の方法で共有


FindName Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The FindName method returns the ordinal position of a string within a container object.

構文

object
.FindName(
Name
)
as Long

Parts

  • object
    Expression that evaluates to an object in the Applies To list.
  • Name
    String on which the search is based.

Prototype (C/C++)

HRESULT FindName(SQLDMO_LPCSTR szName
LPLONG pRetVal);

Returns

On success, a long integer that indicates the ordinal position of the name string. Zero, if the name cannot be located in the container.

解説

On failed search, the method raises the error SQLDMO_E_NAMENOTFOUND.

Applies To:

NameList Object

Names Collection