# C1.ImportServices.ReportingService4.ReportingService2005Soap.PrepareQuery

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_ImportServices_ReportingService4_ReportingService2005Soap_PrepareQuery_" data-uid="C1.ImportServices.ReportingService4.ReportingService2005Soap.PrepareQuery*">PrepareQuery Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_ImportServices_ReportingService4_ReportingService2005Soap_PrepareQuery_" data-uid="C1.ImportServices.ReportingService4.ReportingService2005Soap.PrepareQuery*"></a>
<h4 id="C1_ImportServices_ReportingService4_ReportingService2005Soap_PrepareQuery_C1_ImportServices_ReportingService4_PrepareQueryRequest_" data-uid="C1.ImportServices.ReportingService4.ReportingService2005Soap.PrepareQuery(C1.ImportServices.ReportingService4.PrepareQueryRequest)">PrepareQuery(PrepareQueryRequest)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[OperationContract(Action = &quot;http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/PrepareQuery&quot;, ReplyAction = &quot;*&quot;)]
[XmlSerializerFormat(SupportFaults = true)]
[ServiceKnownType(typeof(DataSourceDefinitionOrReference))]
[ServiceKnownType(typeof(ExpirationDefinition))]
[ServiceKnownType(typeof(RecurrencePattern))]
[ServiceKnownType(typeof(ScheduleDefinitionOrReference))]
PrepareQueryResponse PrepareQuery(PrepareQueryRequest request)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;OperationContract(Action:=&quot;http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/PrepareQuery&quot;, ReplyAction:=&quot;*&quot;)&gt;
&lt;XmlSerializerFormat(SupportFaults:=True)&gt;
&lt;ServiceKnownType(GetType(DataSourceDefinitionOrReference))&gt;
&lt;ServiceKnownType(GetType(ExpirationDefinition))&gt;
&lt;ServiceKnownType(GetType(RecurrencePattern))&gt;
&lt;ServiceKnownType(GetType(ScheduleDefinitionOrReference))&gt;
Function PrepareQuery(request As PrepareQueryRequest) As PrepareQueryResponse</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.ImportServices.ReportingService4.PrepareQueryRequest.html">PrepareQueryRequest</a></td>
      <td><span class="parametername">request</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.ImportServices.ReportingService4.PrepareQueryResponse.html">PrepareQueryResponse</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
