[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether one or more bit fields are set in the current instance.
Assembly: mscorlib (in mscorlib.dll)
The method returns the result of the following Boolean expression.
thisInstance And flag = flag
If the underlying value of flag is zero, the method returns true. If this behavior is not desirable, you can use the Equals method to test for equality with zero and call only if the underlying value of flag is non-zero, as the following example illustrates.
The method is designed to be used with enumeration types that are marked with the FlagsAttribute attribute. For enumeration types that are not marked with the FlagsAttribute attribute, call either the Equals method or the CompareTo method.