Class FtpCommand
FTP command with argument.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public sealed class FtpCommand
Constructors
| Improve this Doc View SourceFtpCommand(String, Nullable<String>)
Initializes a new instance of the FtpCommand class.
Declaration
public FtpCommand(string commandName, string? commandArgument)
Parameters
| Type | Name | Description |
|---|---|---|
| String | commandName | The command name. |
| Nullable<String> | commandArgument | The command argument. |
Properties
| Improve this Doc View SourceArgument
Gets the command argument.
Declaration
public string Argument { get; }
Property Value
| Type | Description |
|---|---|
| String |
Name
Gets the command name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
| Improve this Doc View SourceParse(String)
Splits the command into the name and its arguments.
Declaration
public static FtpCommand Parse(string command)
Parameters
| Type | Name | Description |
|---|---|---|
| String | command | The command to split into name and arguments. |
Returns
| Type | Description |
|---|---|
| FtpCommand | The created FtpCommand. |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |