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) 之外,pack URI 协议不会处理请求中的信息。 对于大多数 ((例如确定) POST 信息的类型)而言,此属性没有用处。

ContentType 如果请求从 PackageStore 缓存解析,则返回空字符串。

属性 ContentType 与内部 WebRequest (GetInnerRequest) 共享。

适用于