FtpWebRequest.ContentType Proprietà

Definizione

Genera sempre un'eccezione 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

Valore della proprietà

Genera sempre un'eccezione NotSupportedException.

Eccezioni

Le informazioni sul tipo di contenuto non sono supportate da FTP.

Commenti

La ContentType proprietà viene fornita solo per la compatibilità con altre implementazioni delle WebRequest classi e WebResponse . Non esiste alcun motivo per usare ContentType.

Si applica a