FtpWebRequest.ContentType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.