return Element (XMLA)

Contains information returned by a DiscoverResponse element in response to a Discover method call or an ExecuteResponse element in response to an Execute method call.

Syntax

  
<DiscoverResponse> <!-- or ExecuteResponse -->  
   <return>  
      <root>...</root>  
      <!-- or -->  
      <results>...</results> <!-- ExecuteResponse only -->  
   </return>  
</DiscoverResponse>  

Element characteristics

Characteristic Description
Data type and length None
Default value None
Cardinality 1-1: Required element that occurs once and only once.

Element relationships

Relationship Element
Parent elements DiscoverResponse, ExecuteResponse
Child elements See the table below.
Ancestor Child elements
DiscoverResponse root
ExecuteResponse root or results

Remarks

The return element contains the data returned by the Discover and Execute methods. Typically, the return element contains a single root element that contains either the data returned by a successful Discover or Execute method call or an XML for Analysis (XMLA) exception returned by an unsuccessful method call. If the Execute method contains a Batch command that performs multiple operations, the return element contains a results element which, in turn, contains one root element for each command executed successfully or unsuccessfully by the Batch command.