ConditionalAttribute Constructor (String^)

 

Initializes a new instance of the ConditionalAttribute class.

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

public:
ConditionalAttribute(
	String^ conditionString
)

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.

No code example is currently available or this language may not be supported.

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
Return to top
Show: