Class ComServer
- Namespace
- ZeroInstall.Model.Capabilities
- Assembly
- ZeroInstall.Model.dll
An application's ability to act as a COM server.
[Serializable]
[Equatable]
public sealed class ComServer : Capability, IEquatable<XmlUnknown>, ICloneable<Capability>, IEquatable<Capability>, IEquatable<ComServer>
- Inheritance
-
ComServer
- Implements
- Inherited Members
Properties
ConflictIDs
Identifiers from a namespace global to all Capabilitys. Collisions in this namespace indicate that the concerned Capabilitys are in conflict cannot be registered on a single system at the same time.
[Browsable(false)]
[IgnoreEquality]
public override IEnumerable<string> ConflictIDs { get; }
Property Value
Remarks
These identifiers are not guaranteed to stay the same between versions. They should not be stored in files but instead always generated on demand.
Methods
Clone()
Creates a deep copy of this Capability instance.
public override Capability Clone()
Returns
- Capability
The new copy of the Capability.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns the capability in the form "-". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(ComServer?, ComServer?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(ComServer? left, ComServer? right)
Parameters
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(ComServer?, ComServer?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(ComServer? left, ComServer? right)
Parameters
Returns
- bool
true if the objects are not equal; otherwise, false.