Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Thread­Aware­Attribute Class / Thread­Aware­Attribute Properties / Thread­Aware­Attribute.​Runtime­Verification­Enabled Property

ThreadAwareAttribute.RuntimeVerificationEnabled Property

Determines whether the code should be verified against the model at runtime. The default value is true for the debug build configuration and false for the release build configuration.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public bool RuntimeVerificationEnabled { get; set; }

Property Value

Type: Boolean
Remarks

This default value is false if the Optimize compiler setting is enabled, and true if this setting is disabled. The default value can also be modified by setting the PostSharpRuntimeVerificationEnabled MSBuild property, which can be edited from the PostSharp tab of project properties in Visual Studio.

See Also