67 instantiations of ReadOnlyAttribute
PresentationFramework (12)
src\Framework\System\Windows\Controls\ContentControl.cs (1)
326[Browsable(false), ReadOnly(true)]
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
246[Browsable(false), Category("Appearance"), ReadOnly(true)]
src\Framework\System\Windows\Controls\TreeView.cs (2)
72[Bindable(true), Category("Appearance"), ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 101[Bindable(true), Category("Appearance"), ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
193[Browsable(false), Category("Appearance"), ReadOnly(true)]
src\Framework\System\Windows\Data\CollectionViewSource.cs (7)
79[ReadOnly(true)] 264[ReadOnly(true)] 332[ReadOnly(true)] 387[ReadOnly(true)] 455[ReadOnly(true)] 508[ReadOnly(true)] 576[ReadOnly(true)]
System (9)
compmod\system\componentmodel\ReadOnlyAttribute.cs (2)
30public static readonly ReadOnlyAttribute Yes = new ReadOnlyAttribute(true); 38public static readonly ReadOnlyAttribute No = new ReadOnlyAttribute(false);
services\monitoring\system\diagnosticts\EventLog.cs (3)
152[ReadOnly(true)] 183[ReadOnly(true)] 293[ReadOnly(true)]
services\monitoring\system\diagnosticts\PerformanceCounter.cs (4)
143ReadOnly(true), 168ReadOnly(true), 192ReadOnly(true), 262ReadOnly(true),
System.Data (6)
fx\src\data\System\Data\ForeignKeyConstraint.cs (4)
136ReadOnly(true) 153ReadOnly(true) 783ReadOnly(true) 827ReadOnly(true)
fx\src\data\System\Data\UniqueConstraint.cs (2)
319ReadOnly(true) 397ReadOnly(true)
System.Messaging (33)
System\Messaging\Message.cs (33)
256[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgAcknowledgement)] 285[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgAcknowledgeType)] 325[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgAdministrationQueue)] 379[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgAppSpecific)] 444[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgAttachSenderId)] 516[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgAuthenticationProviderName)] 564[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgAuthenticationProviderType)] 644[ReadOnly(true), 696[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgBodyType)] 731[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgConnectorType)] 772[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgCorrelationId)] 893[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), 943[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgDigitalSignature)] 992[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgEncryptionAlgorithm)] 1032[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), 1106[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgHashAlgorithm)] 1153[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgId)] 1225[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgLabel)] 1339[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgPriority)] 1383[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgRecoverable)] 1423[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgResponseQueue)] 1471[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 1508[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgSenderCertificate)] 1585[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgSenderVersion)] 1607[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgSentTime)] 1679[ReadOnly(true), 1729[ReadOnly(true), 1803[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgTransactionStatusQueue)] 1857[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgUseAuthentication)] 1908[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgUseDeadLetterQueue)] 1957[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgUseEncryption)] 1997[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgUseJournalQueue)] 2048[ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MessagingDescription(Res.MsgUseTracing)]
System.Workflow.ComponentModel (6)
AuthoringOM\Behaviors\CompensatableTransactionScopeActivity.cs (1)
40[ReadOnly(true)]
AuthoringOM\Behaviors\ExceptionHandler.cs (1)
58[ReadOnly(true)]
AuthoringOM\Behaviors\TransactionScope.cs (1)
42[ReadOnly(true)]
AuthoringOM\Design\PropertyDescriptors.cs (3)
815collection.Add(new ReadOnlyAttribute(true)); 885collection.Add(new ReadOnlyAttribute(true)); 978collection.Add(new ReadOnlyAttribute(true));
WindowsBase (1)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (1)
725newAttributes.Add(new ReadOnlyAttribute(true));
47 references to ReadOnlyAttribute
System (17)
compmod\system\componentmodel\ExtendedPropertyDescriptor.cs (3)
44attrList.Add(ReadOnlyAttribute.Yes); 92return Attributes[typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.Yes);
compmod\system\componentmodel\ReadOnlyAttribute.cs (8)
30public static readonly ReadOnlyAttribute Yes = new ReadOnlyAttribute(true); 38public static readonly ReadOnlyAttribute No = new ReadOnlyAttribute(false); 42/// Specifies the default value for the <see cref='System.ComponentModel.ReadOnlyAttribute'/> , which is <see cref='System.ComponentModel.ReadOnlyAttribute.No'/>, that is, 46public static readonly ReadOnlyAttribute Default = No; 50/// Initializes a new instance of the <see cref='System.ComponentModel.ReadOnlyAttribute'/> class. 78ReadOnlyAttribute other = value as ReadOnlyAttribute;
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (3)
390return SetMethodValue == null || ((ReadOnlyAttribute)Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly; 906attributes.Add(ReadOnlyAttribute.Yes);
compmod\system\componentmodel\TypeConverter.cs (1)
489return Attributes.Contains(ReadOnlyAttribute.Yes);
sys\system\configuration\ApplicationSettingsBase.cs (2)
422else if (attr is ReadOnlyAttribute) { 542if (attr is ReadOnlyAttribute) {
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
980public override bool IsReadOnly { get { return _parent.IsReadOnly || Attributes.Contains(ReadOnlyAttribute.Yes); } }
System.ComponentModel.DataAnnotations (2)
DataAnnotations\MetadataPropertyDescriptorWrapper.cs (2)
15var readOnlyAttribute = newAttributes.OfType<ReadOnlyAttribute>().FirstOrDefault();
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
980public override bool IsReadOnly { get { return _parent.IsReadOnly || Attributes.Contains(ReadOnlyAttribute.Yes); } }
System.Web (4)
ModelBinding\DataAnnotationsModelMetadataProvider.cs (2)
43ReadOnlyAttribute readOnlyAttribute = attributeList.OfType<ReadOnlyAttribute>().FirstOrDefault();
Profile\HttpProfileBase.cs (2)
434else if (attrib is System.ComponentModel.ReadOnlyAttribute) { 435readOnly = ((System.ComponentModel.ReadOnlyAttribute)attrib).IsReadOnly;
System.Web.DynamicData (3)
DynamicData\MetaColumn.cs (1)
562IsReadOnly = Attributes.GetAttributePropertyValue<ReadOnlyAttribute, bool>(a => a.IsReadOnly, false);
DynamicData\MetaTable.cs (2)
985private ReadOnlyAttribute _readOnlyAttribute; 992_readOnlyAttribute = Attributes.FirstOrDefault<ReadOnlyAttribute>();
System.Web.Mobile (2)
UI\MobileControls\Design\StyleSheetDesigner.cs (2)
1104InTemplateMode ? ReadOnlyAttribute.Yes : ReadOnlyAttribute.No,
System.Windows.Forms (11)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
484this.readOnly |= (this.Attributes[typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.Yes));
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
1544ReadOnlyAttribute readOnlyAttr = (ReadOnlyAttribute)TypeDescriptor.GetAttributes(obj)[typeof(ReadOnlyAttribute)];
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (3)
39ReadOnlyAttribute readOnlyAttr = (ReadOnlyAttribute)TypeDescriptor.GetAttributes(obj)[typeof(ReadOnlyAttribute)];
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
157ReadOnlyAttribute readOnlyAttr = (ReadOnlyAttribute)TypeDescriptor.GetAttributes(this.objValue)[typeof(ReadOnlyAttribute)];
System.Workflow.ComponentModel (3)
AuthoringOM\Design\PropertyDescriptors.cs (3)
812if (!(attribute is EditorAttribute || attribute is ReadOnlyAttribute)) 882if (!(attribute is EditorAttribute || attribute is ReadOnlyAttribute)) 975if (!(attribute is EditorAttribute || attribute is ReadOnlyAttribute))
WindowsBase (3)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (3)
295readOnly = Attributes.Contains(ReadOnlyAttribute.Yes); 689ReadOnlyAttribute roAttr = a as ReadOnlyAttribute;