Struct HostEndpoint
Assembly: Couchbase.NetClient.dll
Syntax
public readonly struct HostEndpoint : IEquatable<HostEndpoint>
Constructors
|
Improve this Doc
View Source
HostEndpoint(String, Nullable<Int32>)
Creates a new HostEndpoint.
Declaration
public HostEndpoint(string host, int? port)
Parameters
Type |
Name |
Description |
String |
host |
Host name or IP address. IPv6 addresses should be wrapped in square braces.
|
Nullable<Int32> |
port |
Port number, if any.
|
Properties
|
Improve this Doc
View Source
Host
Host name or IP address. IPv6 addresses should be wrapped in square braces.
Declaration
public readonly string Host { get; }
Property Value
|
Improve this Doc
View Source
Port
Declaration
public readonly int? Port { get; }
Property Value
Methods
|
Improve this Doc
View Source
Deconstruct(out String)
Declaration
public readonly void Deconstruct(out string host)
Parameters
Type |
Name |
Description |
String |
host |
|
|
Improve this Doc
View Source
Deconstruct(out String, out Nullable<Int32>)
Declaration
public readonly void Deconstruct(out string host, out int? port)
Parameters
|
Improve this Doc
View Source
Equals(HostEndpoint)
Declaration
public readonly bool Equals(HostEndpoint other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Nullable<Object>)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
|
Improve this Doc
View Source
Parse(String)
Parse a string in the format "server:11210" or "[::1]:11210".
IPv6 addresses must be enclosed in square brackets.
Declaration
public static HostEndpoint Parse(string server)
Parameters
Type |
Name |
Description |
String |
server |
The server to parse.
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Operators
|
Improve this Doc
View Source
Equality(HostEndpoint, HostEndpoint)
Declaration
public static bool operator ==(HostEndpoint left, HostEndpoint right)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(HostEndpoint, HostEndpoint)
Declaration
public static bool operator !=(HostEndpoint left, HostEndpoint right)
Parameters
Returns
Implements
IEquatable<>