19 overrides of Attributes
System (1)
compmod\system\componentmodel\design\DesignerOptionService.cs (1)
454public override AttributeCollection Attributes {
System.Activities (1)
System\Activities\DynamicActivityTypeDescriptor.cs (1)
165public override AttributeCollection Attributes
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
802public override AttributeCollection Attributes
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (1)
26public override AttributeCollection Attributes
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
24public override AttributeCollection Attributes
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
802public override AttributeCollection Attributes
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (1)
26public override AttributeCollection Attributes
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
24public override AttributeCollection Attributes
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (1)
23public override AttributeCollection Attributes {
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
258public override AttributeCollection Attributes {
System.Workflow.Activities (2)
Common\BasePropertyDescriptor.cs (2)
200public override AttributeCollection Attributes 460public override AttributeCollection Attributes
System.Workflow.ComponentModel (5)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1502public override AttributeCollection Attributes
AuthoringOM\Design\PropertyDescriptors.cs (2)
874public override AttributeCollection Attributes 967public override AttributeCollection Attributes
Shared\BasePropertyDescriptor.cs (2)
199public override AttributeCollection Attributes 459public override AttributeCollection Attributes
WindowsBase (2)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (1)
248public override AttributeCollection Attributes
Base\System\ComponentModel\DependencyPropertyDescriptor.cs (1)
458public override AttributeCollection Attributes { get { return Property.Attributes; } }
146 references to Attributes
PresentationFramework (4)
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
144ConstructorArgumentAttribute constructorArgumentAttribute = descriptor.Attributes[typeof(ConstructorArgumentAttribute)] as ConstructorArgumentAttribute; 890get { return _descriptor.Attributes; }
src\Framework\System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (2)
171return _descriptor.Attributes; 176return descriptor.Attributes;
System (29)
compmod\system\componentmodel\design\DesignerOptionService.cs (1)
456return property.Attributes;
compmod\system\componentmodel\ExtendedPropertyDescriptor.cs (3)
58ExtenderProvidedPropertyAttribute attr = extender.Attributes[typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute; 92return Attributes[typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.Yes); 114DisplayNameAttribute displayNameAttr = Attributes[typeof(DisplayNameAttribute)] as DisplayNameAttribute;
compmod\system\componentmodel\MemberDescriptor.cs (9)
91this.attributes = new Attribute[descr.Attributes.Count]; 92descr.Attributes.CopyTo(this.attributes, 0); 113if (oldMemberDescriptor.Attributes.Count != 0) { 114foreach (object o in oldMemberDescriptor.Attributes) { 184category = ((CategoryAttribute)Attributes[typeof(CategoryAttribute)]).Category; 199description = ((DescriptionAttribute) Attributes[typeof(DescriptionAttribute)]).Description; 213return((BrowsableAttribute)Attributes[typeof(BrowsableAttribute)]).Browsable; 252return(DesignOnlyAttribute.Yes.Equals(Attributes[typeof(DesignOnlyAttribute)])); 264DisplayNameAttribute displayNameAttr = Attributes[typeof(DisplayNameAttribute)] as DisplayNameAttribute;
compmod\system\componentmodel\PropertyDescriptor.cs (4)
88AttributeCollection attrs = Attributes; 117return(LocalizableAttribute.Yes.Equals(Attributes[typeof(LocalizableAttribute)])); 138DesignerSerializationVisibilityAttribute attr = (DesignerSerializationVisibilityAttribute)Attributes[typeof(DesignerSerializationVisibilityAttribute)]; 287AttributeCollection attrs = Attributes;
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (5)
246Attribute a = Attributes[typeof(AmbientValueAttribute)]; 319Attribute a = Attributes[typeof(DefaultValueAttribute)]; 390return SetMethodValue == null || ((ReadOnlyAttribute)Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly; 717return Attributes.Contains(DesignerSerializationVisibilityAttribute.Content); 1194return Attributes.Contains(DesignerSerializationVisibilityAttribute.Content);
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
525ExtenderProvidedPropertyAttribute eppa = prop.Attributes[typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
compmod\system\componentmodel\TypeConverter.cs (3)
489return Attributes.Contains(ReadOnlyAttribute.Yes); 509DefaultValueAttribute attr = (DefaultValueAttribute)Attributes[typeof(DefaultValueAttribute)]; 521DefaultValueAttribute attr = (DefaultValueAttribute)Attributes[typeof(DefaultValueAttribute)];
compmod\system\componentmodel\TypeDescriptor.cs (3)
716oldPropertyDescriptor.Attributes[ 1891ExtenderProvidedPropertyAttribute exAttr = member.Attributes[typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute; 3305Attribute memberAttribute = member.Attributes[attribute.GetType()];
System.Activities (3)
System\Activities\Activity.cs (2)
1671return propertyDescriptor.Attributes[typeof(RequiredArgumentAttribute)] != null; 1677AttributeCollection propertyAttributes = propertyDescriptor.Attributes;
System\Activities\DynamicActivityTypeDescriptor.cs (1)
171AttributeCollection inheritedAttributes = base.Attributes;
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
305AttributeCollection attrs = parentDescriptor.Attributes;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (2)
44return this.propertyDescriptor.Attributes; 87DefaultValueAttribute defaultValueAttribute = this.propertyDescriptor.Attributes[typeof(DefaultValueAttribute)] as DefaultValueAttribute;
System.ComponentModel.DataAnnotations (3)
DataAnnotations\CompareAttribute.cs (1)
61IEnumerable<Attribute> attributes = property.Attributes.Cast<Attribute>();
DataAnnotations\ValidationAttributeStore.cs (2)
232List<Attribute> attributes = new List<Attribute>(propertyDescriptor.Attributes.Cast<Attribute>()); 245return removedAttribute ? new AttributeCollection(attributes.ToArray()) : propertyDescriptor.Attributes;
System.Data (10)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
305AttributeCollection attrs = parentDescriptor.Attributes;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (2)
44return this.propertyDescriptor.Attributes; 87DefaultValueAttribute defaultValueAttribute = this.propertyDescriptor.Attributes[typeof(DefaultValueAttribute)] as DefaultValueAttribute;
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (2)
369attributes = GetAttributesFromCollection(reflected.Attributes); 461Attribute attr = property.Attributes[attribute.GetType()];
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (3)
26Attribute[] attrs = new Attribute[base.Attributes.Count + 1]; 27base.Attributes.CopyTo(attrs, 0); 32return base.Attributes;
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (1)
1024Attribute[] attributes = GetAttributesFromCollection(reflected.Attributes);
fx\src\data\System\Data\xmlsaver.cs (1)
144if ((!pd.ShouldSerializeValue(instance) || !pd.Attributes.Contains(DesignerSerializationVisibilityAttribute.Visible))&&( bIsSqlType == false)) {
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
607Attribute propertyAttribute = property.Attributes[filterAttribute.GetType()];
System.Web (15)
ModelBinding\AssociatedMetadataProvider.cs (1)
62IEnumerable<Attribute> attributes = FilterAttributes(containerType, propertyDescriptor, propertyDescriptor.Attributes.Cast<Attribute>());
ModelBinding\AssociatedValidatorProvider.cs (1)
42return GetValidators(metadata, context, property.Attributes.OfType<Attribute>());
ModelBinding\MutableObjectModelBinder.cs (2)
126DefaultValueAttribute attr = propertyDescriptor.Attributes.OfType<DefaultValueAttribute>().FirstOrDefault(); 140BindingBehaviorAttribute propAttr = propertyDescriptor.Attributes.OfType<BindingBehaviorAttribute>().SingleOrDefault();
UI\ControlBuilder.cs (3)
3106if (propDesc.Attributes.Contains(HtmlControlPersistableAttribute.No)) { 3112else if (!usingSetAttribute && !mainDirectiveMode && propDesc.Attributes.Contains(DesignerSerializationVisibilityAttribute.Hidden)) { 3129ThemeableAttribute attr = (ThemeableAttribute)propDesc.Attributes[typeof(ThemeableAttribute)];
UI\FilterableAttribute.cs (1)
91FilterableAttribute filterableAttr = (FilterableAttribute)propertyDescriptor.Attributes[typeof(FilterableAttribute)];
UI\SkinBuilder.cs (3)
106if (value != null && desc.Attributes[typeof(UrlPropertyAttribute)] != null && 133DefaultValueAttribute defValAttr = (DefaultValueAttribute)desc.Attributes[typeof(DefaultValueAttribute)]; 145if (value != null && desc.Attributes[typeof(UrlPropertyAttribute)] != null &&
UI\WebParts\PropertyGridEditorPart.cs (4)
120if (pd.Attributes.Matches(urlPropertyAttribute) && 161AttributeCollection attributes = property.Attributes; 214WebDescriptionAttribute attribute = (WebDescriptionAttribute)pd.Attributes[typeof(WebDescriptionAttribute)]; 224WebDisplayNameAttribute attribute = (WebDisplayNameAttribute)pd.Attributes[typeof(WebDisplayNameAttribute)];
System.Web.DataVisualization (13)
Common\Utilities\XmlSerializer.cs (13)
377 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 455 DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes[typeof(DefaultValueAttribute)]; 870 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 917SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 1074TypeConverterAttribute typeConverterAttrib = (TypeConverterAttribute)pd.Attributes[typeof(TypeConverterAttribute)]; 1448 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 1539 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 1707 DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes[typeof(DefaultValueAttribute)]; 1732 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 2338 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 2389SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 2603 DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes[typeof(DefaultValueAttribute)]; 2628 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)];
System.Web.DynamicData (2)
DynamicData\ModelProviders\ColumnProvider.cs (1)
48var attributes = propertyDescriptor != null ? propertyDescriptor.Attributes : AttributeCollection.Empty;
DynamicData\ModelProviders\SimpleColumnProvider.cs (1)
18IsPrimaryKey = propertyDescriptor.Attributes.OfType<KeyAttribute>().Any();
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
79(System.ComponentModel.BrowsableAttribute)property.Attributes[typeof(System.ComponentModel.BrowsableAttribute)];
System.Web.Mobile (6)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (1)
189System.ComponentModel.AttributeCollection runtimeAttributes = prop.Attributes;
UI\MobileControls\Design\MobileControlPersister.cs (3)
366PersistenceModeAttribute persistenceMode = (PersistenceModeAttribute)propDescs[i].Attributes[typeof(PersistenceModeAttribute)]; 529DesignOnlyAttribute doAttr = (DesignOnlyAttribute)properties[i].Attributes[typeof(DesignOnlyAttribute)]; 542(DefaultValueAttribute)properties[i].Attributes[typeof(DefaultValueAttribute)];
UI\MobileControls\DeviceSpecificChoice.cs (1)
218if (pd.Attributes.Contains(DesignerSerializationVisibilityAttribute.Hidden))
UI\MobileControls\ObjectList.cs (1)
859(ObjectListTitleAttribute)pd.Attributes[typeof(ObjectListTitleAttribute)];
System.Windows.Forms (22)
misc\ImageListUtils.cs (1)
24RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute;
winforms\Managed\System\WinForms\AxHost.cs (4)
2947Attribute attr = prop.Attributes[typeof(BrowsableAttribute)]; 6980dispid = (DispIdAttribute)baseProp.Attributes[typeof(DispIdAttribute)]; 7028DispIdAttribute dispid = (DispIdAttribute)baseProp.Attributes[typeof(DispIdAttribute)]; 7282ComAliasNameAttribute comAlias = (ComAliasNameAttribute)baseProp.Attributes[typeof(ComAliasNameAttribute)];
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
261return base.Attributes; 329return base.Attributes;
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2758if (selectedEntry != null && selectedEntry.PropertyDescriptor != null && selectedEntry.PropertyDescriptor.Attributes != null) { 2763DispIdAttribute dispIdAttr = (DispIdAttribute)selectedEntry.PropertyDescriptor.Attributes[(typeof(DispIdAttribute))];
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2483if (((ParenthesizePropertyNameAttribute)props[i].Attributes[typeof(ParenthesizePropertyNameAttribute)]).NeedParenthesis) {
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (1)
627attributeCollections[i] = owner.descriptors[i].Attributes;
winforms\Managed\System\WinForms\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
187((PropertyDescriptorGridEntry)ge).propertyInfo.Attributes.Contains(NotifyParentPropertyAttribute.Yes)) {
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (3)
164bool match = pivotDesc.Attributes[typeof(MergablePropertyAttribute)].IsDefaultAttribute(); 179if (!jProp.Attributes[typeof(MergablePropertyAttribute)].IsDefaultAttribute()) { 199if (!jProp.Attributes[typeof(MergablePropertyAttribute)].IsDefaultAttribute()) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (7)
87MergablePropertyAttribute mpa = (MergablePropertyAttribute)propertyInfo.Attributes[typeof(MergablePropertyAttribute)]; 94return propertyInfo.Attributes; 111HelpKeywordAttribute helpAttribute = (HelpKeywordAttribute)propertyInfo.Attributes[typeof(HelpKeywordAttribute)]; 226if (((ParenthesizePropertyNameAttribute)propertyInfo.Attributes[typeof(ParenthesizePropertyNameAttribute)]).NeedParenthesis) { 420RefreshPropertiesAttribute refreshAttr = (RefreshPropertiesAttribute)propertyInfo.Attributes[typeof(RefreshPropertiesAttribute)]; 478((PropertyDescriptorGridEntry)ge).propertyInfo.Attributes.Contains(NotifyParentPropertyAttribute.Yes)) { 690RefreshPropertiesAttribute refreshAttr = (RefreshPropertiesAttribute)propertyInfo.Attributes[typeof(RefreshPropertiesAttribute)];
System.Windows.Forms.DataVisualization (13)
Common\Utilities\XmlSerializer.cs (13)
377 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 455 DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes[typeof(DefaultValueAttribute)]; 870 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 917SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 1074TypeConverterAttribute typeConverterAttrib = (TypeConverterAttribute)pd.Attributes[typeof(TypeConverterAttribute)]; 1448 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 1539 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 1707 DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes[typeof(DefaultValueAttribute)]; 1732 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 2338 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 2389SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)]; 2603 DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes[typeof(DefaultValueAttribute)]; 2628 SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes[typeof(SerializationVisibilityAttribute)];
System.Workflow.Activities (2)
Common\BasePropertyDescriptor.cs (2)
205attributes.AddRange(this.realPropertyDescriptor.Attributes); 465attributes.AddRange(base.Attributes);
System.Workflow.ComponentModel (13)
AuthoringOM\Design\ActivityDesigner.cs (1)
1287ExtenderProvidedPropertyAttribute eppa = prop.Attributes[typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1506return this.realPropertyDescriptor.Attributes;
AuthoringOM\Design\PropertyDescriptors.cs (4)
827BrowsableAttribute browsable = property.Attributes[typeof(BrowsableAttribute)] as BrowsableAttribute; 844BrowsableAttribute browsable = e.Attributes[typeof(BrowsableAttribute)] as BrowsableAttribute; 879foreach (Attribute attribute in this.realPropertyDescriptor.Attributes) 972foreach (Attribute attribute in this.realEventDescriptor.Attributes)
AuthoringOM\Design\Themes.cs (2)
3225DispIdAttribute prop1DispID = property1.Attributes[typeof(DispIdAttribute)] as DispIdAttribute; 3226DispIdAttribute prop2DispID = property2.Attributes[typeof(DispIdAttribute)] as DispIdAttribute;
AuthoringOM\Design\UITypeEditors.cs (2)
46if (typeDescriptorContext.PropertyDescriptor != null && typeDescriptorContext.PropertyDescriptor.Attributes != null) 47typeFilterProvAttr = typeDescriptorContext.PropertyDescriptor.Attributes[typeof(TypeFilterProviderAttribute)] as TypeFilterProviderAttribute;
AuthoringOM\Design\XomlDesignerLoader.cs (1)
882DefaultPropertyAttribute aliasPropertyNameAttribute = propDesc.Attributes[typeof(DefaultPropertyAttribute)] as DefaultPropertyAttribute;
Shared\BasePropertyDescriptor.cs (2)
204attributes.AddRange(this.realPropertyDescriptor.Attributes); 464attributes.AddRange(base.Attributes);
System.Workflow.Runtime (1)
System\Activities\Statements\Interop.cs (1)
689Attribute propertyAttribute = property.Attributes[filterAttribute.GetType()];
WindowsBase (5)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (3)
260AttributeCollection attrs = base.Attributes; 265attrs = base.Attributes; 665baseAttributes = _property.Attributes;
Base\System\ComponentModel\DependencyPropertyDescriptor.cs (2)
99DependencyPropertyAttribute dpa = property.Attributes[typeof(DependencyPropertyAttribute)] as DependencyPropertyAttribute; 458public override AttributeCollection Attributes { get { return Property.Attributes; } }