Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AppDomain.IsCompatibilitySwitchSet Method

Gets a nullable Boolean value that indicates whether any compatibility switches are set, and if so, whether the specified compatibility switch is set.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
public Nullable<bool> IsCompatibilitySwitchSet(
	string value
)

Parameters

value
Type: System.String
The compatibility switch to test.

Return Value

Type: System.Nullable<Boolean>
null if no compatibility switches are set; otherwise, a Boolean value that indicates whether the compatibility switch that is specified by value is set.

This method tests whether the current application domain reverses breaking changes that were introduced in Silverlight 4. The following table provides examples of compatibility switches that can be set to restore the behavior of earlier versions.

Switch

Meaning

"APP_EARLIER_THAN_SL4.0"

Restores the behavior of selected Char and String methods that use ordinal string comparison and case conversion with the invariant culture in Silverlight 2 and Silverlight 3.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.