PackWebRequest.ContentType プロパティ

定義

Content-type HTTP ヘッダーを取得または設定します。

public:
 virtual property System::String ^ ContentType { System::String ^ get(); void set(System::String ^ value); };
public override string ContentType { get; set; }
member this.ContentType : string with get, set
Public Overrides Property ContentType As String

プロパティ値

ヘッダーの内容。

注釈

パック URI プロトコルは、UNIFORM リソース識別子 (URI) 以外の要求の情報を処理しないことに注意してください。 ほとんどの場合 (POST 情報の種類の決定など)、このプロパティには使用されません。

ContentType は、要求がキャッシュから解決された場合に空の文字列を PackageStore 返します。

プロパティは ContentType 内部 WebRequest (GetInnerRequest) と共有されます。

適用対象