57 references to IsDefined
mscorlib (10)
microsoft\win32\registrykey.cs (2)
1404else if (!Enum.IsDefined(typeof(RegistryValueKind), type)) 1466if (!Enum.IsDefined(typeof(RegistryValueKind), valueKind))
system\diagnostics\eventing\eventsource.cs (1)
6352if (Enum.IsDefined(typeof(EventChannelType), attribs.EventChannelType))
system\environment.cs (3)
1446if (!Enum.IsDefined(typeof(SpecialFolder), folder)) 1457if (!Enum.IsDefined(typeof(SpecialFolder),folder)) 1459if (!Enum.IsDefined(typeof(SpecialFolderOption),option))
system\reflection\emit\constructorbuilder.cs (1)
231if (!Enum.IsDefined(typeof(SecurityAction), action) ||
system\reflection\emit\methodbuilder.cs (1)
931if (!Enum.IsDefined(typeof(SecurityAction), action) ||
system\reflection\emit\typebuilder.cs (1)
2551if (!Enum.IsDefined(typeof(SecurityAction), action) ||
system\resources\neutralresourceslanguageattribute.cs (1)
51if (!Enum.IsDefined(typeof(UltimateResourceFallbackLocation), location))
PresentationFramework (1)
src\Framework\System\Windows\Markup\BamlReader.cs (1)
2473if (Enum.IsDefined(typeof(SystemResourceKeyID), (int)memberId))
System (7)
compmod\system\componentmodel\EnumConverter.cs (2)
166if (!type.IsDefined(typeof(FlagsAttribute), false) && !Enum.IsDefined(type, value)) { 327return Enum.IsDefined(type, value);
services\monitoring\system\diagnosticts\CounterCreationData.cs (1)
53if (!Enum.IsDefined(typeof(PerformanceCounterType), value))
services\monitoring\system\diagnosticts\EventData.cs (1)
35if (!Enum.IsDefined(typeof(EventLogEntryType), value))
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
1622if (!Enum.IsDefined(typeof(EventLogEntryType), type))
services\monitoring\system\diagnosticts\Process.cs (1)
789if (!Enum.IsDefined(typeof(ProcessPriorityClass), value)) {
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
452if (!Enum.IsDefined(typeof(ProcessWindowStyle), value))
System.ComponentModel.DataAnnotations (2)
DataAnnotations\EnumDataTypeAttribute.cs (1)
85return Enum.IsDefined(this.EnumType, convertedValue);
DataAnnotations\Schema\DatabaseGeneratedAttribute.cs (1)
15if (!(Enum.IsDefined(typeof(DatabaseGeneratedOption), databaseGeneratedOption))) {
System.Core (2)
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
89Contract.Assert(Enum.IsDefined(typeof(QueryAggregationOptions), options), "enum out of valid range");
System\Linq\ParallelEnumerable.cs (1)
1583Contract.Assert(Enum.IsDefined(typeof(QueryAggregationOptions), options), "enum is out of range");
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (3)
984if (Enum.IsDefined(typeof(SqlNotificationType), temp)) { 999if (Enum.IsDefined(typeof(SqlNotificationSource), temp)) { 1027if (Enum.IsDefined(typeof(SqlNotificationInfo), temp)) {
System.Data.Services (1)
System\Data\Services\WebUtil.cs (1)
294Debug.Assert(Enum.IsDefined(typeof(T), value), "enum value is not valid");
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (2)
222Debug.Assert(Enum.IsDefined(typeof(OptimizerPatternName), pattern)); 232Debug.Assert(Enum.IsDefined(typeof(OptimizerPatternName), pattern));
System.Drawing (1)
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
452if (!Enum.IsDefined(typeof(PrintRange), value))
System.IdentityModel (1)
System\IdentityModel\Configuration\StandardRuntimeEnumValidator.cs (1)
27if (!Enum.IsDefined(enumType, value))
System.Messaging (2)
System\Messaging\MessageQueueInstaller.cs (1)
314if (!Enum.IsDefined(typeof(UninstallAction), value))
System\Messaging\MessageQueuePermission.cs (1)
177if (Enum.IsDefined(typeof(MessageQueuePermissionAccess), currentAccess))
System.ServiceModel (3)
System\ServiceModel\Configuration\StandardRuntimeEnumValidator.cs (1)
27if (!Enum.IsDefined(enumType, value))
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidator.cs (1)
25if (!Enum.IsDefined(typeof(TEnum), value))
System\ServiceModel\Description\PrincipalPermissionMode.cs (1)
22return Enum.IsDefined( typeof( PrincipalPermissionMode ), principalPermissionMode );
System.Web (1)
Configuration\SessionStateSection.cs (1)
467if (Enum.IsDefined(enumType, s)) {
System.Web.Services (3)
System\Web\Services\Configuration\ProtocolElement.cs (1)
47return Enum.IsDefined(typeof(WebServiceProtocols), value);
System\Web\Services\Configuration\SoapExtensionTypeElement.cs (1)
43if (Enum.IsDefined(typeof(PriorityGroup), value))
System\Web\Services\Configuration\WsiProfilesElement.cs (1)
47return Enum.IsDefined(typeof(WsiProfiles), value);
System.Windows.Forms (8)
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (1)
132Debug.Assert(Enum.IsDefined(typeof(DataGridViewContentAlignment), value));
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
62Debug.Assert(Enum.IsDefined(typeof(ButtonState), value));
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
169if (!Enum.IsDefined(typeof(System.Environment.SpecialFolder), value))
winforms\Managed\System\WinForms\KeyEvent.cs (1)
118if (!Enum.IsDefined(typeof(Keys),(int)keyGenerated))
winforms\Managed\System\WinForms\KeysConverter.cs (1)
306if (!foundKey && Enum.IsDefined(typeof(Keys), (int)keyOnly)) {
winforms\Managed\System\WinForms\MenuItem.cs (1)
635if (!Enum.IsDefined(typeof(Shortcut), value)) {
winforms\Managed\System\WinForms\PreviewKeyDownEventArgs.cs (1)
75if (!Enum.IsDefined(typeof(Keys),(int)keyGenerated))
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1846&& Enum.IsDefined(typeof(Shortcut), (Shortcut)keyCode)) {
WindowsBase (8)
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (2)
393Debug.Assert(Enum.IsDefined(typeof(CompressionMethodEnum), compressionMethod)); 394Debug.Assert(Enum.IsDefined(typeof(DeflateOptionEnum), deflateOption));
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (3)
51Debug.Assert(Enum.IsDefined(typeof(CompressionMethodEnum), compressionMethod)); 52Debug.Assert(Enum.IsDefined(typeof(DeflateOptionEnum), deflateOption)); 303Debug.Assert(Enum.IsDefined(typeof(DeflateOptionEnum), value));
Base\System\IO\Packaging\ZipPackage.cs (2)
597Debug.Assert(Enum.IsDefined(typeof(CompressionMethodEnum), zipFileInfo.CompressionMethod), "Enum value is not in range"); 598Debug.Assert(Enum.IsDefined(typeof(DeflateOptionEnum), zipFileInfo.DeflateOption), "Enum value is not in range");
Shared\MS\Win32\SafeNativeMethodsCLR.cs (1)
542if (Enum.IsDefined(typeof(NativeMethods.WTS_CONNECTSTATE_CLASS), data))
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\NamedObject.cs (1)
32if (!Enum.IsDefined(typeof(MemberVisibility), value))
Microsoft\Build\Tasks\Xaml\PropertyData.cs (1)
44if (!Enum.IsDefined(typeof(MemberVisibility), value))