Class BodyParameter
- Namespace
- RestSharp
- Assembly
- RestSharp.dll
public record BodyParameter : Parameter, IEquatable<Parameter>, IEquatable<BodyParameter>
- Inheritance
-
BodyParameter
- Implements
- Derived
- Inherited Members
Constructors
BodyParameter(BodyParameter)
protected BodyParameter(BodyParameter original)
Parameters
originalBodyParameter
BodyParameter(string?, object, string, DataFormat)
public BodyParameter(string? name, object value, string contentType, DataFormat dataFormat = DataFormat.None)
Parameters
namestringvalueobjectcontentTypestringdataFormatDataFormat
Properties
ContentEncoding
Custom content encoding
public string? ContentEncoding { get; init; }
Property Value
DataFormat
Body parameter data type
public DataFormat DataFormat { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Equals(BodyParameter?)
public virtual bool Equals(BodyParameter? other)
Parameters
otherBodyParameter
Returns
Equals(Parameter?)
public override sealed bool Equals(Parameter? other)
Parameters
otherParameter
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
Return a human-readable representation of this parameter
public override string ToString()
Returns
- string
String
Operators
operator ==(BodyParameter?, BodyParameter?)
public static bool operator ==(BodyParameter? left, BodyParameter? right)
Parameters
leftBodyParameterrightBodyParameter
Returns
operator !=(BodyParameter?, BodyParameter?)
public static bool operator !=(BodyParameter? left, BodyParameter? right)
Parameters
leftBodyParameterrightBodyParameter