Restituisce l'oggetto FieldInfo per il campo specificato.
Questo metodo restituisce un oggetto FieldInfo da cui è possibile ottenere informazioni sul campo. Questo metodo non restituisce il valore effettivo memorizzato nel campo. Per richiamare il valore effettivo (o i valori), richiamare prima questo metodo e poi i metodi GetValue o GetValueAsList dell'oggetto FieldInfo.
È possibile utilizzare un nome di percorso del campo come argomento per questo metodo. Per ulteriori informazioni, consultare l'argomento "Come utilizzare nomi percorso campo per richiamare i valori del campo".
VBScript
entity.GetFieldValue(field_name)
Perl
$entity->GetFieldValue(field_name);
VBScript
set sessionObj = GetSession ' Iterate through the fields and output ' the field name and type. fieldNameList = GetFieldNames For Each fieldName in fieldNameList fieldValue = GetFieldValue(fieldName).GetValue sessionObj.OutputDebugString "Field name: " & fieldName & _ ", value=" & fieldValue Next
Perl
$sessionobj = $entity->GetSession(); # Iterate through the fields and output # the field name and type. $fieldnamelist = $entity->GetFieldNames(); foreach $fieldname (@$fieldnamelist) { $fieldinfoobj = $entity->GetFieldValue($fieldname); $fieldvalue = $fieldinfoobj->GetValue(); $sessionobj->OutputDebugString("Field name: ".$fieldname. ", value=".$fieldvalue); }