System.Runtime.ConstrainedExecution.Consistency Enumeration

Specifies a reliability contract.

Syntax

public enum Consistency

Remarks

The System.Runtime.ConstrainedExecution.Consistency enumeration is used as a parameter to the System.Runtime.ConstrainedExecution.ReliabilityContractAttribute attribute to specify the reliability guarantee on a given method.

Members

Member NameDescription
MayCorruptAppDomain

In the face of exceptional conditions, the common language runtime (CLR) makes no guarantees regarding state consistency in the current application domain.

MayCorruptInstance

In the face of exceptional conditions, the method is guaranteed to limit state corruption to the current instance.

MayCorruptProcess

In the face of exceptional conditions, the CLR makes no guarantees regarding state consistency; that is, the condition might corrupt the process.

WillNotCorruptState

In the face of exceptional conditions, the method is guaranteed not to corrupt state.

Requirements

Namespace: System.Runtime.ConstrainedExecution
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0