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


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.




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.


Supported in: 5, 4

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

Community Additions