sdk/dotnet/src/Microsoft.Datasync.Client/Query/TableQuery.cs
/// <summary>
/// Applies to the source query the specified string key-value
/// pairs to be used as user-defined parameters with the request URI
/// query string.
/// </summary>
/// <param name="parameters">The parameters to apply.</param>
/// <returns>The composed query object.</returns>
Applies to the source query the specified string key-value
pairs to be used as user-defined parameters with the request URI
query string.
Applies to the source query the specified string key - value pairs to be used as user - defined parameters with the request URI query string .
public ITableQuery<T> WithParameters(IEnumerable<KeyValuePair<string, string>> parameters)
        {
            Arguments.IsNotNull(parameters, nameof(parameters));
            parameters.ToList().ForEach(param =>
            {
                if (param.Key.StartsWith("$") || param.Key.StartsWith("__"))
                {
                    throw new ArgumentException($"Parameter '{param.Key}' is invalid", nameof(parameters));
                }
                Parameters[param.Key] = param.Value;
            });
            return this;
        }
public ITableQuery < T > WithParameters ( IEnumerable < KeyValuePair < string , string > > parameters ) { Arguments . IsNotNull ( parameters , nameof ( parameters ) ) ; parameters . ToList ( ) . ForEach ( param => { if ( param . Key . StartsWith ( " " ) || param . Key . StartsWith ( " " ) ) { throw new ArgumentException ( $" Parameter ' { param . Key } ' is invalid " , nameof ( parameters ) ) ; } Parameters [ param . Key ] = param . Value ; } ) ; return this ; }
Applies to the source query the specified string key-value
pairs to be used as user-defined parameters with the request URI
query string.
Applies to the source query the specified string key - value pairs to be used as user - defined parameters with the request URI query string .
The composed query object.
The composed query object .
parameters
IEnumerable<KeyValuePair<string, string>>
The parameters to apply.
The parameters to apply .