Share via


CompatibilityResult Class

Definition

Returned by IsCompatibleWith(Object) and related methods to indicate whether or not one object does not conflict with another such that the two can be combined into one.

public sealed class CompatibilityResult
type CompatibilityResult = class
Public NotInheritable Class CompatibilityResult
Inheritance
CompatibilityResult

Remarks

If the two objects are not compatible then information about why they are not compatible is contained in the ErrorMessage property.

Constructors

CompatibilityResult(Boolean, String)

Creates a new CompatibilityResult instance.

Properties

ErrorMessage

If IsCompatible is true, then returns an error message indicating how the two tested objects are incompatible.

IsCompatible

True if the two tested objects are compatible; otherwise false.

Operators

Implicit(CompatibilityResult to Boolean)

Implicit conversion to a bool to allow the result object to be used directly in checks.

Applies to