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)
30
public static readonly ReadOnlyAttribute Yes = new
ReadOnlyAttribute
(true);
38
public 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)
143
ReadOnly
(true),
168
ReadOnly
(true),
192
ReadOnly
(true),
262
ReadOnly
(true),
System.Data (6)
fx\src\data\System\Data\ForeignKeyConstraint.cs (4)
136
ReadOnly
(true)
153
ReadOnly
(true)
783
ReadOnly
(true)
827
ReadOnly
(true)
fx\src\data\System\Data\UniqueConstraint.cs (2)
319
ReadOnly
(true)
397
ReadOnly
(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)
815
collection.Add(new
ReadOnlyAttribute
(true));
885
collection.Add(new
ReadOnlyAttribute
(true));
978
collection.Add(new
ReadOnlyAttribute
(true));
WindowsBase (1)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (1)
725
newAttributes.Add(new
ReadOnlyAttribute
(true));
47 references to ReadOnlyAttribute
System (17)
compmod\system\componentmodel\ExtendedPropertyDescriptor.cs (3)
44
attrList.Add(
ReadOnlyAttribute
.Yes);
92
return Attributes[typeof(
ReadOnlyAttribute
)].Equals(
ReadOnlyAttribute
.Yes);
compmod\system\componentmodel\ReadOnlyAttribute.cs (8)
30
public static readonly
ReadOnlyAttribute
Yes = new ReadOnlyAttribute(true);
38
public 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,
46
public static readonly
ReadOnlyAttribute
Default = No;
50
/// Initializes a new instance of the <see cref='System.ComponentModel.
ReadOnlyAttribute
'/> class.
78
ReadOnlyAttribute
other = value as
ReadOnlyAttribute
;
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (3)
390
return SetMethodValue == null || ((
ReadOnlyAttribute
)Attributes[typeof(
ReadOnlyAttribute
)]).IsReadOnly;
906
attributes.Add(
ReadOnlyAttribute
.Yes);
compmod\system\componentmodel\TypeConverter.cs (1)
489
return Attributes.Contains(
ReadOnlyAttribute
.Yes);
sys\system\configuration\ApplicationSettingsBase.cs (2)
422
else if (attr is
ReadOnlyAttribute
) {
542
if (attr is
ReadOnlyAttribute
) {
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
980
public override bool IsReadOnly { get { return _parent.IsReadOnly || Attributes.Contains(
ReadOnlyAttribute
.Yes); } }
System.ComponentModel.DataAnnotations (2)
DataAnnotations\MetadataPropertyDescriptorWrapper.cs (2)
15
var
readOnlyAttribute = newAttributes.OfType<
ReadOnlyAttribute
>().FirstOrDefault();
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
980
public override bool IsReadOnly { get { return _parent.IsReadOnly || Attributes.Contains(
ReadOnlyAttribute
.Yes); } }
System.Web (4)
ModelBinding\DataAnnotationsModelMetadataProvider.cs (2)
43
ReadOnlyAttribute
readOnlyAttribute = attributeList.OfType<
ReadOnlyAttribute
>().FirstOrDefault();
Profile\HttpProfileBase.cs (2)
434
else if (attrib is System.ComponentModel.
ReadOnlyAttribute
) {
435
readOnly = ((System.ComponentModel.
ReadOnlyAttribute
)attrib).IsReadOnly;
System.Web.DynamicData (3)
DynamicData\MetaColumn.cs (1)
562
IsReadOnly = Attributes.GetAttributePropertyValue<
ReadOnlyAttribute
, bool>(a => a.IsReadOnly, false);
DynamicData\MetaTable.cs (2)
985
private
ReadOnlyAttribute
_readOnlyAttribute;
992
_readOnlyAttribute = Attributes.FirstOrDefault<
ReadOnlyAttribute
>();
System.Web.Mobile (2)
UI\MobileControls\Design\StyleSheetDesigner.cs (2)
1104
InTemplateMode ?
ReadOnlyAttribute
.Yes :
ReadOnlyAttribute
.No,
System.Windows.Forms (11)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
484
this.readOnly |= (this.Attributes[typeof(
ReadOnlyAttribute
)].Equals(
ReadOnlyAttribute
.Yes));
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
1544
ReadOnlyAttribute
readOnlyAttr = (
ReadOnlyAttribute
)TypeDescriptor.GetAttributes(obj)[typeof(
ReadOnlyAttribute
)];
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (3)
39
ReadOnlyAttribute
readOnlyAttr = (
ReadOnlyAttribute
)TypeDescriptor.GetAttributes(obj)[typeof(
ReadOnlyAttribute
)];
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
157
ReadOnlyAttribute
readOnlyAttr = (
ReadOnlyAttribute
)TypeDescriptor.GetAttributes(this.objValue)[typeof(
ReadOnlyAttribute
)];
System.Workflow.ComponentModel (3)
AuthoringOM\Design\PropertyDescriptors.cs (3)
812
if (!(attribute is EditorAttribute || attribute is
ReadOnlyAttribute
))
882
if (!(attribute is EditorAttribute || attribute is
ReadOnlyAttribute
))
975
if (!(attribute is EditorAttribute || attribute is
ReadOnlyAttribute
))
WindowsBase (3)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (3)
295
readOnly = Attributes.Contains(
ReadOnlyAttribute
.Yes);
689
ReadOnlyAttribute
roAttr = a as
ReadOnlyAttribute
;