FtpWebRequest.UseDefaultCredentials 属性
定义
总是引发 NotSupportedException。Always throws a NotSupportedException.
public:
virtual property bool UseDefaultCredentials { bool get(); void set(bool value); };
public override bool UseDefaultCredentials { get; set; }
member this.UseDefaultCredentials : bool with get, set
Public Overrides Property UseDefaultCredentials As Boolean
属性值
总是引发 NotSupportedException。Always throws a NotSupportedException.
例外
FTP 不支持默认凭据。Default credentials are not supported for FTP.
注解
UseDefaultCredentials提供属性只是为了与和类的其他实现兼容 WebRequest WebResponse 。The UseDefaultCredentials property is provided only for compatibility with other implementations of the WebRequest and WebResponse classes. 没有理由使用 UseDefaultCredentials 。There is no reason to use UseDefaultCredentials.