LoggingLevelSettings.CompareTo(LoggingLevelSettings) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public:
virtual int CompareTo(Microsoft::VisualStudio::RpcContracts::Logging::LoggingLevelSettings ^ other);
public int CompareTo (Microsoft.VisualStudio.RpcContracts.Logging.LoggingLevelSettings? other);
abstract member CompareTo : Microsoft.VisualStudio.RpcContracts.Logging.LoggingLevelSettings -> int
override this.CompareTo : Microsoft.VisualStudio.RpcContracts.Logging.LoggingLevelSettings -> int
Public Function CompareTo (other As LoggingLevelSettings) As Integer
Parameters
- other
- LoggingLevelSettings
Returns
Implements
Remarks
In order to make a valid comparison, exactly one of other
and "this" must be a subset of the other. In other words, only one of these 2 objects may contain extra unique logging setting(s). For example, if "this" enables ActivityTracing and nothing else and other
enables Warning and nothing else, an InvalidOperationException will be thrown because a strict ordering is not possible. If "this" enables ActivityTracing and nothing else and other
enables Warning | ActivityTracing then a negative Int32 will be returned because "this" is a subset of other
. If "this" and other
are equal, 0 will be returned.