GetAuxEntityDefNames

Description

Restituisce un vettore di stringhe, ciascuno dei quali corrisponde al nome di uno dei tipi di record senza stato schema.

Il vettore non è mai vuoto; conterrà almeno i nomi "utenti", "gruppi", "allegati" e "cronologia" che corrispondono ai tipi di record senza stato definiti dal sistema.

Una volta ottenuto il nome di un tipo di record senza stato, è possibile richiamare l'Oggetto EntityDef per tale tipo di record richiamando il metodo GetEntityDef.

Sintassi

VBScript

session.GetAuxEntityDefNames 

Perl

$session->GetAuxEntityDefNames(); 
Identificativo
Description
session
L'oggetto Session che rappresenta la sessione di accesso al database corrente.
Valore di ritorno
Per Visual Basic, viene restituito un valore Variant che contiene un vettore di stringhe. Ciascun valore String contiene il nome del tipo di record senza stato.

Per Perl, un riferimento a un vettore di stringhe.

Esempi

VBScript

set sessionObj = GetSession 

' Get the list of names for the stateless record types. 
entityDefNames = sessionObj.GetAuxEntityDefNames 

' Iterate over the non-system stateless record types 
for each name in entityDefNames
   if name <> "users" And name <> "groups" _ 
      And name <> "attachments" And name <> "history" Then 
         set entityDefObj = sessionObj.GetEntityDef(name) 

      ' Do something with the EntityDef object   
   End If 
Next 

Perl

$sessionObj = $entity->GetSession();

#Get an array containing the names of the stateless record

#types in the current database's schema.

$AuxEntityDefNames = $sessionObj->GetAuxEntityDefNames();

   

#Iterate over the state-based record types 

foreach $name ( @$AuxEntityDefNames){

   print $name, "\n";

   $EntityDefObj = $sessionObj->GetEntityDef( $name);

# Do something with the EntityDef object

   # ...

   } 


Feedback