FtpWebRequest.ContentType Egenskap

Definition

Kastar alltid en 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

Egenskapsvärde

Kastar alltid en NotSupportedException.

Undantag

Information om innehållstyp stöds inte för FTP.

Kommentarer

Egenskapen ContentType tillhandahålls endast för kompatibilitet med andra implementeringar av klasserna WebRequest och WebResponse . Det finns ingen anledning att använda ContentType.

Gäller för