IHttpResponseFeature.ReasonPhrase Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the reason-phrase as defined in RFC 9112 Section 4. Note this field is no longer supported by HTTP/2.
public:
property System::String ^ ReasonPhrase { System::String ^ get(); void set(System::String ^ value); };
public string ReasonPhrase { get; set; }
public string? ReasonPhrase { get; set; }
member this.ReasonPhrase : string with get, set
Public Property ReasonPhrase As String
Property Value
Remarks
Must contain only ASCII characters: HTAB (0x09), SP (0x20), and VCHAR (0x21-0x7E). Non-ASCII characters (> 0x7E) and control characters including CR and LF are rejected. Callers should not pass untrusted or user-supplied input without prior sanitization.