Class ServerApi
Represents a server API.
public class ServerApi : IEquatable<ServerApi>
- Inheritance
-
ServerApi
- Implements
- Inherited Members
Constructors
ServerApi(ServerApiVersion, Optional<bool?>, Optional<bool?>)
Initializes a new instance of the ServerApi class.
public ServerApi(ServerApiVersion version, Optional<bool?> strict = default, Optional<bool?> deprecationErrors = default)
Parameters
versionServerApiVersionThe server API version.
strictOptional<bool?>The flag for strict server API version enforcement.
deprecationErrorsOptional<bool?>The flag for treating deprecated server APIs as errors.
Properties
DeprecationErrors
Gets the deprecation errors flag.
public bool? DeprecationErrors { get; }
Property Value
- bool?
Strict
Gets the strict flag.
public bool? Strict { get; }
Property Value
- bool?
Version
Gets the server API version.
public ServerApiVersion Version { get; }
Property Value
Methods
Equals(ServerApi)
public bool Equals(ServerApi other)
Parameters
otherServerApi
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ServerApi, ServerApi)
Returns true if the two values are equal.
public static bool operator ==(ServerApi lhs, ServerApi rhs)
Parameters
Returns
- bool
True if the two values are equal.
operator !=(ServerApi, ServerApi)
Returns true if the two values are not equal.
public static bool operator !=(ServerApi lhs, ServerApi rhs)
Parameters
Returns
- bool
True if the two values are not equal.