Επεξεργασία

Κοινή χρήση μέσω


FtpWebRequest.ContentType Property

Definition

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

Property Value

Always throws a NotSupportedException.

Exceptions

Content type information is not supported for FTP.

Remarks

The ContentType property is provided only for compatibility with other implementations of the WebRequest and WebResponse classes. There is no reason to use ContentType.

Applies to