Restituisce i nomi dei tipi di record basati sullo stato nello schema del database corrente.
I tipi di record basati sullo stato sono maschere per i record basati sullo stato. La maggior parte dei database dispone di almeno un tipo di record basato sullo stato che definisce il tipo di dati memorizzati dal database. Il database può anche disporre di più tipi di record stateless di supporto che contengono le informazioni secondarie.
Di solito, il valore di ritorno contiene almeno un nome; tuttavia, il valore di ritorno può essere un valore Variant vuoto se non esiste alcun tipo di record basato sullo stato nello schema.
Una volta utilizzato questo metodo per ottenere l'elenco di nomi, è possibile richiamare l'Oggetto EntityDef per un determinato tipo di record richiamando il metodo GetEntityDef.
VBScript
session.GetReqEntityDefNames
Perl
$sessionObj->GetReqEntityDefNames();
Per Perl, viene restituito un riferimento ad un array di stringhe.
VBScript
set sessionObj = GetSession ' Get the list of names of the state-based record types. entityDefNames = sessionObj.GetReqEntityDefNames ' Iterate over the state-based record types for each name in entityDefNames set entityDefObj = sessionObj.GetEntityDef(name) ' Do something with the EntityDef object Next
Perl
$sessionObj = $entity->GetSession(); #Get the names of the state-based record types. $entityDefNames = $sessionObj->GetReqEntityDefNames(); #Iterate over the state-based record types foreach $name ( @$entityDefNames ){ print $name, "\n"; $entityDefObj = $session->GetEntityDef( $name); # Do something with the EntityDef object # ... }