HttpMediaTypeHeaderValue.CharSet 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 Content-Type HTTP 標頭中使用的實體主體字元集。
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
屬性值
實體主體的字元集。
備註
HTTP 會使用字元集名稱來指出或交涉文字標記法 [RFC6365] 的字元編碼配置。 CharSet 屬性是由不區分大小寫的權杖所識別。
應該在 IANA 字元集登錄中註冊字元集名稱。