Class FtpTransferMode
FTP transfer mode (RFC 959, 3.4.).
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public sealed class FtpTransferMode
Constructors
| Improve this Doc View SourceFtpTransferMode(FtpFileType)
Initializes a new instance of the FtpTransferMode class.
Declaration
public FtpTransferMode(FtpFileType fileType)
Parameters
Type | Name | Description |
---|---|---|
FtpFileType | fileType | The file data type of this transfer mode. |
Properties
| Improve this Doc View SourceBits
Gets the bits of a binary transfer mode.
Declaration
public int? Bits { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
FileType
Gets the file data type.
Declaration
public FtpFileType FileType { get; }
Property Value
Type | Description |
---|---|
FtpFileType |
InterpreterMode
Gets the interpreter mode.
Declaration
public FtpFileTypeInterpreterMode? InterpreterMode { get; }
Property Value
Type | Description |
---|---|
Nullable<FtpFileTypeInterpreterMode> |
IsBinary
Gets a value indicating whether the transfer mode is binary.
Declaration
public bool IsBinary { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceParse(String)
Parses a transfer mode.
Declaration
public static FtpTransferMode Parse(string type)
Parameters
Type | Name | Description |
---|---|---|
String | type | The transfer mode to parse. |
Returns
Type | Description |
---|---|
FtpTransferMode | The new FtpTransferMode. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |