Credentials Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the credentials used to communicate with the FTP server.

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

public NetworkCredential Credentials { get; set; }

Property Value

Type: System.Net..::..NetworkCredential
An ICredentials instance; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic) if the property has not been set.

You are not required to specify credentials when connecting using anonymous logon. You must set the Credentials property by using a credential of type NetworkCredential; this ensures that the user name and password can be read and sent to the server.

Show: