CompatibilityResult Class
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.
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. |