BFtp
Linea B-Arts Legacy: questa scheda descrive
B-ArtsFramework(.NET Framework 4.7.2). Non usare firme o namespace come se appartenessero alla linea Classic successiva o alBFrameworkmoderno .NET 10.
Identità
Assembly/progetto:
B-ArtsFramework.Target:
.NET Framework 4.7.2.Namespace CLR:
BArts.BNet.Nome completo:
BArts.BNet.BFtp.Tipo:
class.Ambito:
runtime/interfaccia pubblica.
Ruolo
Client FTP della linea Legacy con lettura directory, download, upload e cancellazione.
Dichiarazione
Public Class BFtp
Tipi annidati pubblici
Costruttori
| Nome | Dichiarazione |
|---|---|
New |
Public Sub New(FtpServer As String, FtpUser As String, FtpPassword As String, Optional FtpPort As Integer = 21, Optional ConfigLog As BLog.BLogTracerConfig = Nothing, Optional ServerSO As eServerSO = eServerSO.WINDOWS) |
Proprietà
| Nome | Dichiarazione |
|---|---|
ServerSO |
Public Property ServerSO As eServerSO |
ServerName |
Public Property ServerName As String = "" |
Port |
Public Property Port As Integer = 25 |
User |
Public Property User As String = "" |
Pwd |
Public Property Pwd As String = "" |
Folder |
Public Property Folder As String = "" |
ExceptionList |
Public Property ExceptionList As List(Of Exception) |
Configlog |
Public Property Configlog As BLog.BLogTracerConfig |
KeepAlive |
Public Property KeepAlive As Boolean = False |
UsePassive |
Public Property UsePassive As Boolean = True |
EnabledSSL |
Public Property EnabledSSL As Boolean = False |
Timeout |
Public Property Timeout As Integer = 100000 |
ResultText |
Public Property ResultText As String = "" |
LogText |
Public Property LogText As String = "" |
Items |
Public Property Items As List(Of BFtpItem) |
Metodi
| Nome | Dichiarazione |
|---|---|
Read |
Public Function Read(Optional SourceFolder As String = "") As Boolean |
Download |
Public Function Download(Itm As BFtpItem) As BIO.BFile |
Upload |
Public Function Upload(f As BIO.BFile, DestinationFolder As String) As Boolean |
GetFileSize |
Public Function GetFileSize(FileName As String) As Integer |
DeleteFile |
Public Function DeleteFile(FileName As String) As Boolean |
Sorgenti verificati
Net\BFtp.vb
