FtpWebRequest.ContentType Właściwość

Definicja

Zawsze zgłasza wartość 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

Wartość właściwości

Zawsze zgłasza wartość NotSupportedException.

Wyjątki

Informacje o typie zawartości nie są obsługiwane w przypadku protokołu FTP.

Uwagi

Właściwość ContentType jest udostępniana tylko w celu zachowania zgodności z innymi implementacjami WebRequest klas i WebResponse . Nie ma powodu, dla którego należy użyć polecenia ContentType.

Dotyczy