title: Parameterize DocumentDB query with IN clause
body: <p>I have a query somewhat like the following which I'm trying to parameterize:</p>
  
  <pre><code>List&lt;string&gt; poiIDs = /*List of poi ids*/;
  List&lt;string&gt; parameterNames = /*List of parameter names*/;
  
  string inClause = string.Join(",", parameterNames);
  
  string query = string.Format("SELECT c.id AS poiID, c.poiName, c.latitude, c.longitude FROM c WHERE c.clusterName = @clusterName AND c.id IN ({0}) AND c.deleted = false", inClause);
  
  IQueryable&lt;POI&gt; queryResult = Client.CreateDocumentQuery&lt;POI&gt;(Collection.SelfLink, new SqlQuerySpec
              {
                  QueryText = query,
                  Parameters = new SqlParameterCollection()
                  {
                      new SqlParameter("@clusterName", "POI"),
                      // How do I declare the dynamically generated parameters here
                      // as new SqlParameter()?
                  }
               });
  </code></pre>
  
  <p>How do I declare the dynamically generated parameters as new SqlParameter() for the Parameters property of SqlQuerySpec in order to create my document query?</p>