Share via


RequestId Struct

Definition

Represents the ID of a request, whether it is a number or a string.

[Newtonsoft.Json.JsonConverter(typeof(StreamJsonRpc.RequestIdJsonConverter))]
public struct RequestId : IEquatable<StreamJsonRpc.RequestId>
[<Newtonsoft.Json.JsonConverter(typeof(StreamJsonRpc.RequestIdJsonConverter))>]
type RequestId = struct
Public Structure RequestId
Implements IEquatable(Of RequestId)
Inheritance
RequestId
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Constructors

RequestId(Int64)

Initializes a new instance of the RequestId struct.

RequestId(String)

Initializes a new instance of the RequestId struct.

Properties

IsEmpty

Gets a value indicating whether the request ID was not specified (i.e. no string, number or null was given).

IsNull

Gets a value indicating whether this request ID is explicitly specified as the special "null" value.

NotSpecified

Gets an empty (absent) ID.

Null

Gets the special value for an explicitly specified null request ID.

Number

Gets the ID if it is a number.

String

Gets the ID if it is a string.

Methods

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(RequestId)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(RequestId, RequestId)

Tests equality between two RequestId values.

Inequality(RequestId, RequestId)

Tests inequality between two RequestId values.

Applies to