IsActionDefName

Descrizione

Identifica se l'oggetto EntityDef contiene un'azione con il nome specificato.

Sintassi

VBScript

entitydef.IsActionDefName name 

Perl

$entitydef->IsActionDefName(name); 
Identificativo
Descrizione
entitydef
Un oggetto EntityDef corrispondente ad un tipo di record in uno schema.
name
Una stringa contenente il nome dell'azione da verificare.
Valore di ritorno
Il valore True se il nome (name) è il nome di un'azione reale nell'oggetto EntityDef; in caso contrario il valore False.

Esempi

VBScript

set sessionObj = GetSession
set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName())

If entityDefObj.IsActionDefName("open") Then
   sessionObj.OutputDebugString "The record type supports the open action"
End If 

Perl

$sessionObj = $entity->GetSession();

$entityDefObj = $sessionObj->GetEntityDef($entity->GetEntityDefName());



if ($entityDefObj->IsActionDefName("open"))

 {

 $sessionObj->OutputDebugString("The record type supports the open action");

 } 

Feedback