ReliabilityContractAttribute Constructor (Consistency, Cer)

 

Initializes a new instance of the ReliabilityContractAttribute class with the specified Consistency guarantee and Cer value.

Namespace:   System.Runtime.ConstrainedExecution
Assembly:  mscorlib (in mscorlib.dll)

public:
ReliabilityContractAttribute(
	Consistency consistencyGuarantee,
	Cer cer
)

Parameters

consistencyGuarantee
Type: System.Runtime.ConstrainedExecution::Consistency

One of the Consistency values.

cer
Type: System.Runtime.ConstrainedExecution::Cer

One of the Cer values.

The following code example demonstrates the use of the ReliabilityContractAttribute constructor to create a constrained execution region and a finally block that is guaranteed to execute.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: