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