Düzenle

Aracılığıyla paylaş


DocReturnEvent.ReturnStatus Property

Definition

Gets or sets a value indicating the return status of the OnLoad event and the OnSubmitRequest event.

public:
 property bool ReturnStatus { bool get(); void set(bool value); };
public bool ReturnStatus { get; set; }
member this.ReturnStatus : bool with get, set
Public Property ReturnStatus As Boolean

Property Value

Examples

In the following example, the ReturnStatus property of the DocReturnEventObject object is used to indicate that the OnLoad event was not successful:

public void OnLoad(DocReturnEvent e)
{ 
 // Cancel the event.
 e.<span class="label">ReturnStatus</span> = false;
}

Remarks

If the ReturnStatus property is set to false, the OnLoad and OnSubmitRequest events fail. If set to true, the OnLoad and OnSubmitRequest events are successful. The default value for the OnLoad event is true, and the default value for the OnSubmitRequest event is false.

Applies to