Share via


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僅供與和 WebResponse 類別的其他實WebRequest作相容。 沒有理由使用 ContentType

適用於