Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft