Class FtpCommandHandlerExtensionAttribute
Marks a class as being an FTP command handler extension.
Inherited Members
Namespace: FubarDev.FtpServer.CommandExtensions
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class FtpCommandHandlerExtensionAttribute : Attribute
Remarks
The class must implement IFtpCommandHandlerExtension.
Constructors
| Improve this Doc View SourceFtpCommandHandlerExtensionAttribute(String, String)
Initializes a new instance of the FtpCommandHandlerExtensionAttribute class.
Declaration
public FtpCommandHandlerExtensionAttribute(string name, string extensionOf)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the FTP command this handler accepts. |
String | extensionOf | The na of the FTP command this extension belongs to. |
FtpCommandHandlerExtensionAttribute(String, String, Boolean)
Initializes a new instance of the FtpCommandHandlerExtensionAttribute class.
Declaration
public FtpCommandHandlerExtensionAttribute(string name, string extensionOf, bool isLoginRequired)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the FTP command this handler accepts. |
String | extensionOf | The na of the FTP command this extension belongs to. |
Boolean | isLoginRequired | Indicates whether this command is abortable. |
Properties
| Improve this Doc View SourceExtensionOf
Gets the name of the FTP command this extension belongs to.
Declaration
public string ExtensionOf { get; }
Property Value
Type | Description |
---|---|
String |
IsLoginRequired
Gets a value indicating whether a login is required to execute this command.
Declaration
public bool? IsLoginRequired { get; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Name
Gets the name of the FTP command extension.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |