GetAuxEntityDefNames

Descrizione

Restituisce un array di stringhe, ciascuno dei quali corrisponde al nome di uno dei tipi di record stateless schema.

L'array non è mai vuoto; conterrà almeno i nomi "utenti", "gruppi", "allegati" e "cronologia" che corrispondono ai tipi di record stateless definiti dal sistema.

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

Sintassi

VBScript

session.GetAuxEntityDefNames 

Perl

$session->GetAuxEntityDefNames(); 
Identificativo
Descrizione
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 array di stringhe. Ciascuna stringa contiene il nome del tipo di record stateless.

In Perl, un riferimento ad un array 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