Struct HostEndpoint
Assembly: Couchbase.NetClient.dll
Syntax
public readonly struct HostEndpoint : IEquatable<HostEndpoint>
Constructors
|
Edit this page
View Source
HostEndpoint(string, int?)
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.
|
int? |
port |
Port number, if any.
|
Properties
|
Edit this page
View Source
Host
Host name or IP address. IPv6 addresses should be wrapped in square braces.
Declaration
public string Host { get; }
Property Value
|
Edit this page
View Source
Port
Declaration
public int? Port { get; }
Property Value
Methods
|
Edit this page
View Source
Deconstruct(out string)
Declaration
public void Deconstruct(out string host)
Parameters
Type |
Name |
Description |
string |
host |
|
|
Edit this page
View Source
Deconstruct(out string, out int?)
Declaration
public void Deconstruct(out string host, out int? port)
Parameters
|
Edit this page
View Source
Equals(HostEndpoint)
Declaration
public bool Equals(HostEndpoint other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
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
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
operator ==(HostEndpoint, HostEndpoint)
Declaration
public static bool operator ==(HostEndpoint left, HostEndpoint right)
Parameters
Returns
|
Edit this page
View Source
operator !=(HostEndpoint, HostEndpoint)
Declaration
public static bool operator !=(HostEndpoint left, HostEndpoint right)
Parameters
Returns
Implements