CompatibilityResult Class

 

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

Namespace:   System.Data.Entity.Infrastructure.Annotations
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Infrastructure.Annotations.CompatibilityResult

public sealed class CompatibilityResult

NameDescription
System_CAPS_pubmethodCompatibilityResult(Boolean, String)

Creates a new CompatibilityResult instance.

NameDescription
System_CAPS_pubpropertyErrorMessage

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

System_CAPS_pubpropertyIsCompatible

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

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticImplicit(CompatibilityResult to Boolean)

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.