Delen via


HttpMediaTypeHeaderValue.CharSet Property

Definition

Gets or sets the character set of the entity-body used in the Content-Type HTTP header.

public:
 property Platform::String ^ CharSet { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring CharSet();

void CharSet(winrt::hstring value);
public string CharSet { get; set; }
var string = httpMediaTypeHeaderValue.charSet;
httpMediaTypeHeaderValue.charSet = string;
Public Property CharSet As String

Property Value

String

Platform::String

winrt::hstring

The character set of the entity-body.

Remarks

HTTP uses character set names to indicate or negotiate the character encoding scheme of a textual representation [RFC6365]. A CharSet property is identified by a case-insensitive token.

Character set names ought to be registered in the IANA Character Set registry.

Applies to