Struct ClusterVersion
Represents the Couchbase Server Cluster version.
Assembly: Couchbase.NetClient.dll
Syntax
public readonly struct ClusterVersion : IEquatable<ClusterVersion>, IComparable<ClusterVersion>
Constructors
|
Edit this page
View Source
ClusterVersion(Version?, int, string?)
Create a new ClusterVersion.
Declaration
public ClusterVersion(Version? version = null, int build = -1, string? suffix = null)
Parameters
Type |
Name |
Description |
Version |
version |
Version number.
|
int |
build |
Build number.
|
string |
suffix |
Additional information, such as "community" or "enterprise".
|
Properties
|
Edit this page
View Source
Build
Declaration
public int Build { get; }
Property Value
|
Edit this page
View Source
Suffix
Additional information, such as "community" or "enterprise".
Declaration
public string? Suffix { get; }
Property Value
|
Edit this page
View Source
Version
Declaration
public Version? Version { get; }
Property Value
Methods
|
Edit this page
View Source
CompareTo(ClusterVersion)
Declaration
public int CompareTo(ClusterVersion other)
Parameters
Returns
|
Edit this page
View Source
Deconstruct(out Version?, out int)
Deconstruct into a tuple.
Declaration
public void Deconstruct(out Version? version, out int build)
Parameters
|
Edit this page
View Source
Deconstruct(out Version?, out int, out string?)
Deconstruct into a tuple.
Declaration
public void Deconstruct(out Version? version, out int build, out string? suffix)
Parameters
|
Edit this page
View Source
Equals(ClusterVersion)
Declaration
public bool Equals(ClusterVersion 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)
Declaration
public static ClusterVersion Parse(string versionString)
Parameters
Type |
Name |
Description |
string |
versionString |
String to parse.
|
Returns
Exceptions
Type |
Condition |
FormatException |
versionString is not a valid version string.
|
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Edit this page
View Source
TryParse(string, out ClusterVersion)
Declaration
public static bool TryParse(string versionString, out ClusterVersion version)
Parameters
Returns
Type |
Description |
bool |
True if parsed successfully.
|
Operators
|
Edit this page
View Source
operator ==(ClusterVersion, ClusterVersion)
Declaration
public static bool operator ==(ClusterVersion left, ClusterVersion right)
Parameters
Returns
|
Edit this page
View Source
operator >(ClusterVersion, ClusterVersion)
Declaration
public static bool operator >(ClusterVersion left, ClusterVersion right)
Parameters
Returns
|
Edit this page
View Source
operator >=(ClusterVersion, ClusterVersion)
Declaration
public static bool operator >=(ClusterVersion left, ClusterVersion right)
Parameters
Returns
|
Edit this page
View Source
operator !=(ClusterVersion, ClusterVersion)
Declaration
public static bool operator !=(ClusterVersion left, ClusterVersion right)
Parameters
Returns
|
Edit this page
View Source
operator <(ClusterVersion, ClusterVersion)
Declaration
public static bool operator <(ClusterVersion left, ClusterVersion right)
Parameters
Returns
|
Edit this page
View Source
operator <=(ClusterVersion, ClusterVersion)
Declaration
public static bool operator <=(ClusterVersion left, ClusterVersion right)
Parameters
Returns
Implements