FtpWebRequest.ContentType Propriedade

Definição

Sempre gera um NotSupportedException.Always throws a 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

Valor da propriedade

String

Sempre gera um NotSupportedException.Always throws a NotSupportedException.

Exceções

Não há suporte de FTP para informações de tipo de conteúdo.Content type information is not supported for FTP.

Comentários

A ContentType propriedade é fornecida somente para compatibilidade com outras implementações das WebRequest WebResponse classes e.The ContentType property is provided only for compatibility with other implementations of the WebRequest and WebResponse classes. Não há motivo para usar ContentType .There is no reason to use ContentType.

Aplica-se a