ContractOptionAttribute Constructor (String^, String^, Boolean)

.NET Framework (current version)
 

Initializes a new instance of the ContractOptionAttribute class by using the provided category, setting, and enable/disable value.

Namespace:   System.Diagnostics.Contracts
Assembly:  mscorlib (in mscorlib.dll)

public:
ContractOptionAttribute(
	String^ category,
	String^ setting,
	bool enabled
)

Parameters

category
Type: System::String^

The category for the option to be set.

setting
Type: System::String^

The option setting.

enabled
Type: System::Boolean

true to enable the option; false to disable the option.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: