FileWebRequest.ContentType 属性

定义

获取或设置发送的数据的内容类型。 保留此属性供将来使用。

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

属性值

发送的数据的内容类型。

注解

属性 ContentType 包含要发送的数据的媒体类型。 这通常是内容的 MIME 编码。 类 ContentType 当前不使用 FileWebRequest 属性。

适用于