Proprietà DocReturnEvent.ReturnStatus
Ottiene o imposta un valore che indica lo stato restituito dell'evento OnLoad e dell'evento OnSubmitRequest.
Questa proprietà non è compatibile con CLS.
Spazio dei nomi: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
Sintassi
<DispIdAttribute(101)> _
Property ReturnStatus As Boolean
Dim instance As DocReturnEvent
Dim value As Boolean
value = instance.ReturnStatus
instance.ReturnStatus = value
[DispIdAttribute(101)]
bool ReturnStatus { get; set; }
Osservazioni
Se la proprietà ReturnStatus è impostata su false, gli eventi OnLoad e OnSubmitRequest hanno esito negativo. Se è impostata su true, gli eventi OnLoad e OnSubmitRequest hanno esito positivo. Il valore predefinito per l'evento OnLoad è true e il valore predefinito per l'evento OnSubmitRequest è false.
![]() |
---|
Possono accedere a questo membro solo moduli eseguiti nello stesso dominio del modulo aperto oppure moduli a cui sono state concesse autorizzazioni tra domini. |
Esempio
Nell'esempio seguente, la proprietà ReturnStatus dell'oggetto DocReturnEventObject viene utilizzata per indicare che l'evento OnLoad non ha avuto esito positivo:
[InfoPathEventHandler(EventType=InfoPathEventType.OnLoad)]
public void OnLoad(DocReturnEvent e)
{
// Cancel the event.
e.ReturnStatus = false;
}
Vedere anche
Riferimenti
Interfaccia DocReturnEvent
Membri DocReturnEvent
Spazio dei nomi Microsoft.Office.Interop.InfoPath.SemiTrust