16 instantiations of DesignOnlyAttribute
System.ComponentModel.Primitives (2)
System\ComponentModel\DesignOnlyAttribute.cs (2)
18public static readonly DesignOnlyAttribute Yes = new DesignOnlyAttribute(true); 24public static readonly DesignOnlyAttribute No = new DesignOnlyAttribute(false);
System.Data.Common (3)
System\Data\Common\DbCommand.cs (1)
54[DesignOnly(true)]
System\Data\Common\DbConnectionStringBuilder.cs (1)
118[DesignOnly(true)]
System\Data\Common\DbParameter.cs (1)
26[DesignOnly(true)]
System.Data.Odbc (1)
System\Data\Odbc\OdbcCommand.cs (1)
298DesignOnly(true),
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (1)
34[System.ComponentModel.DesignOnlyAttribute(true)]
System.Windows.Forms.Design (8)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (2)
62[DesignOnly(true)] 86[DesignOnly(true)]
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
69[DesignOnly(true)]
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (3)
85[DesignOnly(true)] 98[DesignOnly(true)] 114[DesignOnly(true)]
System\Windows\Forms\Design\ComponentTray.cs (2)
955[DesignOnly(true)] 982[DesignOnly(true)]
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
2013[DesignOnly(true)]
31 references to DesignOnlyAttribute
netstandard (1)
netstandard.cs (1)
305[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DesignOnlyAttribute))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
291[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DesignOnlyAttribute))]
System.ComponentModel.Primitives (7)
System\ComponentModel\DesignOnlyAttribute.cs (7)
18public static readonly DesignOnlyAttribute Yes = new DesignOnlyAttribute(true); 24public static readonly DesignOnlyAttribute No = new DesignOnlyAttribute(false); 27/// Specifies the default value for the <see cref='System.ComponentModel.DesignOnlyAttribute'/>, 28/// which is <see cref='System.ComponentModel.DesignOnlyAttribute.No'/>. 31public static readonly DesignOnlyAttribute Default = No; 34/// Initializes a new instance of the <see cref='System.ComponentModel.DesignOnlyAttribute'/> class. 47obj is DesignOnlyAttribute other && other.IsDesignOnly == IsDesignOnly;
System.ComponentModel.TypeConverter (3)
System\ComponentModel\MemberDescriptor.cs (3)
193/// design time as specified in the <see cref='System.ComponentModel.DesignOnlyAttribute'/>. 195public virtual bool DesignTimeOnly => (DesignOnlyAttribute.Yes.Equals(Attributes[typeof(DesignOnlyAttribute)]));
System.Windows.Forms.Design (19)
System\ComponentModel\Design\ComponentDesigner.cs (2)
420if (Equals(prop.Attributes[typeof(DesignOnlyAttribute)], DesignOnlyAttribute.Yes))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
541if (md._member.Attributes.Contains(DesignOnlyAttribute.Yes))
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
16private static readonly Attribute[] s_runTimeFilter = [DesignOnlyAttribute.No]; 17private static readonly Attribute[] s_designTimeFilter = [DesignOnlyAttribute.Yes];
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
20private static readonly Attribute[] s_runTimeProperties = [DesignOnlyAttribute.No];
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
13private static readonly Attribute[] s_runTimeFilter = [DesignOnlyAttribute.No]; 14private static readonly Attribute[] s_designTimeFilter = [DesignOnlyAttribute.Yes];
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
393bool isDesignTime = propertyToSerialize.Attributes.Contains(DesignOnlyAttribute.Yes);
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
85if (!shouldSerialize && !descriptor.Attributes.Contains(DesignOnlyAttribute.Yes))
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
20private static readonly Attribute[] s_designTimeFilter = [DesignOnlyAttribute.Yes];
System\Windows\Forms\Design\ControlDesigner.cs (1)
1663DesignOnlyAttribute.Yes,
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
270DesignOnlyAttribute.Yes);
System\Windows\Forms\Design\DocumentDesigner.cs (3)
1242DesignOnlyAttribute.Yes, 1248DesignOnlyAttribute.Yes, 1254DesignOnlyAttribute.No);
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
2103DesignOnlyAttribute.Yes, 2109DesignOnlyAttribute.Yes, 2116DesignOnlyAttribute.Yes,