Class GenericFeatureInfo
Generic feature information.
Implements
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
[Obsolete("Use an attribute that implements IFeatureInfo, like - for example - FtpFeatureTextAttribute.")]
public class GenericFeatureInfo : IFeatureInfo
Constructors
| Improve this Doc View SourceGenericFeatureInfo(String, Boolean, String[])
Initializes a new instance of the GenericFeatureInfo class.
Declaration
[Obsolete("Use an attribute that implements IFeatureInfo, like - for example - FtpFeatureTextAttribute.")]
public GenericFeatureInfo(string name, bool requiresAuthentication, params string[] additionalNames)
Parameters
Type | Name | Description |
---|---|---|
String | name | The feature name. |
Boolean | requiresAuthentication | Indicates whether this extension requires an authenticated user. |
String[] | additionalNames | The additional feature names. |
GenericFeatureInfo(String, Nullable<Func<IFtpConnection, String>>, Boolean, String[])
Initializes a new instance of the GenericFeatureInfo class.
Declaration
[Obsolete("Use an attribute that implements IFeatureInfo, like - for example - FtpFeatureTextAttribute.")]
public GenericFeatureInfo(string name, Func<IFtpConnection, string>? toString, bool requiresAuthentication, params string[] additionalNames)
Parameters
Type | Name | Description |
---|---|---|
String | name | The feature name. |
Nullable<Func<IFtpConnection, String>> | toString | The function to use to create a |
Boolean | requiresAuthentication | Indicates whether this extension requires an authenticated user. |
String[] | additionalNames | The additional feature names. |
Properties
| Improve this Doc View SourceNames
Declaration
[Obsolete("Features don't have names. Use an attribute that implements IFeatureInfo, like - for example - FtpFeatureTextAttribute.")]
public ISet<string> Names { get; }
Property Value
Type | Description |
---|---|
ISet<String> |
RequiresAuthentication
Declaration
[Obsolete("This requirement is automatically determined through the FTP command handler.")]
public bool RequiresAuthentication { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceBuildInfo(IFtpConnection)
Declaration
[Obsolete("Use BuildInfo(object, IFtpConnection) instead.")]
public string BuildInfo(IFtpConnection connection)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnection | connection |
Returns
Type | Description |
---|---|
String |
BuildInfo(Type, IFtpConnection)
Declaration
public IEnumerable<string> BuildInfo(Type reference, IFtpConnection connection)
Parameters
Type | Name | Description |
---|---|---|
Type | reference | |
IFtpConnection | connection |
Returns
Type | Description |
---|---|
IEnumerable<String> |