ConditionalAttribute Constructor (String^)
.NET Framework (current version)
Initializes a new instance of the ConditionalAttribute class.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- conditionString
-
Type:
System::String^
A string that specifies the case-sensitive conditional compilation symbol that is associated with the attribute.
The following example demonstrates how to use the ConditionalAttribute constructor. This example is part of a larger example provided for the ConditionalAttribute class.
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: