Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FtpWebRequest::UseDefaultCredentials Property

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Always throws a NotSupportedException.

Namespace:   System.Net
Assembly:  System (in System.dll)

public:
property bool UseDefaultCredentials {
	virtual bool get() override;
	virtual void set(bool value) override;
}

Property Value

Type: System::Boolean

Always throws a NotSupportedException.

Exception Condition
NotSupportedException

Default credentials are not supported for FTP.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft