ข้ามไปยังเนื้อหา

Class RestEndpointCandidateStatusExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Transports
Assembly: Cephalon.Abstractions.dll

Provides canonical wire-name helpers for .

public static class RestEndpointCandidateStatusExtensions

objectRestEndpointCandidateStatusExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Gets the stable wire name used by JSON serialization for the candidate status.

public static string GetWireName(this RestEndpointCandidateStatus status)

status RestEndpointCandidateStatus

The candidate status.

string

The stable wire name.

TryParseWireName(string?, out RestEndpointCandidateStatus)

Section titled “ TryParseWireName(string?, out RestEndpointCandidateStatus)”

Tries to parse the stable wire name used by JSON serialization into a candidate status.

public static bool TryParseWireName(string? value, out RestEndpointCandidateStatus status)

value string?

The wire name to parse.

status RestEndpointCandidateStatus

The parsed candidate status when the wire name is recognized.

bool

true when the wire name maps to a supported candidate status; otherwise, false.