Table of Contents

Class QueryParameter

Namespace
RestSharp
Assembly
RestSharp.dll
public record QueryParameter : NamedParameter, IEquatable<Parameter>, IEquatable<NamedParameter>, IEquatable<QueryParameter>
Inheritance
QueryParameter
Implements
Inherited Members

Constructors

QueryParameter(QueryParameter)

protected QueryParameter(QueryParameter original)

Parameters

original QueryParameter

QueryParameter(string, string?, bool)

Instantiates a new query parameter instance that will be added to the request URL as {name}={value} part of the query string.

public QueryParameter(string name, string? value, bool encode = true)

Parameters

name string

Parameter name

value string

Parameter value

encode bool

Optional: encode the value, default is true

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(NamedParameter?)

public override sealed bool Equals(NamedParameter? other)

Parameters

other NamedParameter

Returns

bool

Equals(QueryParameter?)

public virtual bool Equals(QueryParameter? other)

Parameters

other QueryParameter

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

Return a human-readable representation of this parameter

public override string ToString()

Returns

string

String

Operators

operator ==(QueryParameter?, QueryParameter?)

public static bool operator ==(QueryParameter? left, QueryParameter? right)

Parameters

left QueryParameter
right QueryParameter

Returns

bool

operator !=(QueryParameter?, QueryParameter?)

public static bool operator !=(QueryParameter? left, QueryParameter? right)

Parameters

left QueryParameter
right QueryParameter

Returns

bool