WebTransportCloseInfo Class

The application error code and reason of a closed session (the CLOSE_WEBTRANSPORT_SESSION capsule).

public sealed class WebTransportCloseInfo : IEquatable<WebTransportCloseInfo>
Implements

Constructors

NameDescription
WebTransportCloseInfo(uint, string)The application error code and reason of a closed session (the CLOSE_WEBTRANSPORT_SESSION capsule).

WebTransportCloseInfo(uint, string)

WebTransportCloseInfo.cs

The application error code and reason of a closed session (the CLOSE_WEBTRANSPORT_SESSION capsule).

public WebTransportCloseInfo(uint ErrorCode, string Reason)

Parameters

ErrorCode uint
The application error code.
Reason string
The reason, at most 1024 bytes in UTF-8.

Properties

NameDescription
ErrorCodeThe application error code.
ReasonThe reason, at most 1024 bytes in UTF-8.

The application error code.

public uint ErrorCode { get; init; }

Property value

uint

The reason, at most 1024 bytes in UTF-8.

public string Reason { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(uint, string)
Equals(WebTransportCloseInfo?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(uint, string)

public void Deconstruct(out uint ErrorCode, out string Reason)

Parameters

ErrorCode uint
Reason string

No documentation is available.

Equals overloads

Equals(WebTransportCloseInfo?)

public bool Equals(WebTransportCloseInfo? other)
Parameters
other WebTransportCloseInfo?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(WebTransportCloseInfo?, WebTransportCloseInfo?)
operator !=(WebTransportCloseInfo?, WebTransportCloseInfo?)

operator ==(WebTransportCloseInfo?, WebTransportCloseInfo?)

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

No documentation is available.

operator !=(WebTransportCloseInfo?, WebTransportCloseInfo?)

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

No documentation is available.