sdk/dotnet/src/Microsoft.Datasync.Client/Query/TableQuery.cs
/// <summary>
/// Adds the parameter to the list of user-defined parameters to send with the
/// request.
/// </summary>
/// <param name="key">The parameter key</param>
/// <param name="value">The parameter value</param>
/// <returns>The composed query object.</returns>
Adds the parameter to the list of user-defined parameters to send with the
request.
Adds the parameter to the list of user - defined parameters to send with the request .
public ITableQuery<T> WithParameter(string key, string value)
        {
            Arguments.IsNotNullOrWhitespace(key, nameof(key));
            Arguments.IsNotNullOrWhitespace(value, nameof(value));
            if (key.StartsWith("$") || key.StartsWith("__"))
            {
                throw new ArgumentException($"Parameter '{key}' is invalid", nameof(key));
            }
            Parameters[key] = value;
            return this;
        }
public ITableQuery < T > WithParameter ( string key , string value ) { Arguments . IsNotNullOrWhitespace ( key , nameof ( key ) ) ; Arguments . IsNotNullOrWhitespace ( value , nameof ( value ) ) ; if ( key . StartsWith ( " " ) || key . StartsWith ( " " ) ) { throw new ArgumentException ( $" Parameter ' { key } ' is invalid " , nameof ( key ) ) ; } Parameters [ key ] = value ; return this ; }
Adds the parameter to the list of user-defined parameters to send with the
request.
Adds the parameter to the list of user - defined parameters to send with the request .
The composed query object.
The composed query object .
key
string
The parameter key
The parameter key
value
string
The parameter value
The parameter value