Class FtpResponseLine
Information about a line to be sent to the client.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public sealed class FtpResponseLine
Constructors
| Improve this Doc View SourceFtpResponseLine(Nullable<String>, Nullable<Object>)
Initializes a new instance of the FtpResponseLine class.
Declaration
public FtpResponseLine(string? text, object? token)
Parameters
Type | Name | Description |
---|---|---|
Nullable<String> | text | The text sent to the client. Set to null to indicate that no more lines will follow. |
Nullable<Object> | token | The token to be passes to the GetNextLineAsync(Nullable<Object>, CancellationToken) function to get the next line. |
Properties
| Improve this Doc View SourceHasMoreData
Gets a value indicating whether there are more lines to be sent to the client.
Declaration
public bool HasMoreData { get; }
Property Value
Type | Description |
---|---|
Boolean |
HasText
Gets a value indicating whether the Text property contains data to be sent to the client.
Declaration
public bool HasText { get; }
Property Value
Type | Description |
---|---|
Boolean |
Text
Gets the text to be sent to the client.
Declaration
public string? Text { get; }
Property Value
Type | Description |
---|---|
Nullable<String> |
Remarks
Is null when no text should be sent to the client.
Token
Gets the token to be passed to GetNextLineAsync(Nullable<Object>, CancellationToken) to get the next line.
Declaration
public object? Token { get; }
Property Value
Type | Description |
---|---|
Nullable<Object> |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |