Class HostInfo
Record for a host name/address.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class HostInfo
Constructors
| Improve this Doc View SourceHostInfo()
Initializes a new instance of the HostInfo class.
Declaration
public HostInfo()
HostInfo(IPAddress)
Initializes a new instance of the HostInfo class.
Declaration
public HostInfo(IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
IPAddress | address | The IP address. |
HostInfo(String)
Initializes a new instance of the HostInfo class.
Declaration
public HostInfo(string hostName)
Parameters
Type | Name | Description |
---|---|---|
String | hostName | The host name. |
Properties
| Improve this Doc View SourceAddress
Gets the IP address.
Declaration
public IPAddress Address { get; }
Property Value
Type | Description |
---|---|
IPAddress |
HostName
Gets the host name.
Declaration
public string HostName { get; }
Property Value
Type | Description |
---|---|
String |
IsAddress
Gets a value indicating whether this object represents an IP address.
Declaration
public bool IsAddress { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsEmpty
Gets a value indicating whether this host object is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsHostName
Gets a value indicating whether this object represents an host name.
Declaration
public bool IsHostName { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |