Ftp Object : Protocol Property |
Visual Basic |
---|
Public Property Protocol As ProtocolConstants |
The default value is secureAuto. This is a design-time property.
ProtocolConstants is a flag enumeration, so multiple ProtocolConstants may be combined to advertise multiple security protocols as available.
This property is ignored if the Authentication property is set to atHashLogin or atNone.
If the server and the client specify secureAuto, then the best shared protocol is normally used. If one side uses secureAuto and the other side specifies a single protocol, then the protocol specified is used. If the client and server specify protocols that do not match, then the Error event will fire with Number = ptProtocol and the connection will be closed.