語言

FtpWebRequest.ContentType 屬性

定義

總是丟出一個 NotSupportedException。

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

屬性值

總是丟出一個 NotSupportedException。

例外狀況

FTP 不支援內容類型資訊。

備註

此ContentType特性僅提供以相容其他 and WebRequest 類別實作WebResponse。 沒有理由使用 ContentType。

適用於