FtpClient.InternetProtocolVersions Property

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Flags specifying which versions of the internet protocol to support when making a connection. All addresses returned during name resolution are tried until a successful connection is made. You can fine tune which versions of the internet protocol to use by adding or removing flags here. I.e., setting this property to FtpIpVersion.IPv4 will cause the connection process to ignore IPv6 addresses. The default value is ANY version.

Namespace: System.Net.FtpClient
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461

Syntax

C#
public FtpIpVersion InternetProtocolVersions { get; set; }
Visual Basic
Public Property InternetProtocolVersions As FtpIpVersion
	Get
	Set
Visual C++
public:
property FtpIpVersion InternetProtocolVersions {
	FtpIpVersion get ();
	void set (FtpIpVersion value);
}

Property Value

Type: FtpIpVersion

See Also