ContractOptionAttribute Constructor (String, String, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the ContractOptionAttribute class by using the provided category, setting, and value.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- category
- Type: System.String
The category of the option to be set.
- setting
- Type: System.String
The option setting.
- value
- Type: System.String
The value for the setting.
There are only two category/setting options, and they can be set by either of the constructor overloads. You can use this overload with the same settings as the ContractOptionAttribute overload by specifying "true" or "false" in string format; for example:
[ContractOption("contract", "inheritance", “false”)]
class MyConcurrentList<T> : IList<T> {
...
}