You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Appends the specified <paramref name="name"/> and <paramref name="value"/> to the form post body if the specified <paramref name="condition"/> is true.
116
+
/// </summary>
117
+
/// <param name="condition">If condition is true, form data will be added; otherwise ignore form data.</param>
118
+
/// <param name="name">The form parameter name.</param>
119
+
/// <param name="value">The form parameter value.</param>
120
+
/// <returns>A fluent request builder.</returns>
121
+
/// <exception cref="ArgumentNullException"><paramref name="name" /> is <see langword="null" />.</exception>
/// Appends the specified <paramref name="name" /> and <paramref name="value" /> to the form post body if the specified <paramref name="condition" /> is true.
116
132
/// </summary>
@@ -130,6 +146,25 @@ public TBuilder FormValueIf<TValue>(Func<bool> condition, string name, TValue va
130
146
returnFormValue(name,value);
131
147
}
132
148
149
+
/// <summary>
150
+
/// Appends the specified <paramref name="name" /> and <paramref name="value" /> to the form post body if the specified <paramref name="condition" /> is true.
151
+
/// </summary>
152
+
/// <typeparam name="TValue">The type of the value.</typeparam>
153
+
/// <param name="condition">If condition is true, form data will be added; otherwise ignore form data.</param>
154
+
/// <param name="name">The form parameter name.</param>
155
+
/// <param name="value">The form parameter value.</param>
156
+
/// <returns>
157
+
/// A fluent request builder.
158
+
/// </returns>
159
+
/// <exception cref="ArgumentNullException"><paramref name="name" /> is <see langword="null" />.</exception>
/// Appends the specified <paramref name="name"/> and <paramref name="value"/> to the request Uri if the specified <paramref name="condition"/> is true.
395
+
/// </summary>
396
+
/// <param name="condition">If condition is true, query string will be added; otherwise ignore query string.</param>
/// Appends the specified <paramref name="name" /> and <paramref name="value" /> to the request Uri if the specified <paramref name="condition" /> is true.
/// Appends the specified <paramref name="name" /> and <paramref name="value" /> to the request Uri if the specified <paramref name="condition" /> is true.
430
+
/// </summary>
431
+
/// <typeparam name="TValue">The type of the value.</typeparam>
432
+
/// <param name="condition">If condition is true, query string will be added; otherwise ignore query string.</param>
0 commit comments