Condividi tramite


FindName Method

Questa funzionalità verrà rimossa in una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

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

Sintassi

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.

Osservazioni

On failed search, the method raises the error SQLDMO_E_NAMENOTFOUND.

Applies To:

NameList Object

Names Collection