Share via


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