Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / RefreshPropertiesAttribute.cs / 1305376 / RefreshPropertiesAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class RefreshPropertiesAttribute : Attribute { ///Specifies how a designer refreshes when the property value is changed. ////// public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute(RefreshProperties.All); ////// Indicates all properties should /// be refreshed if the property value is changed. This field is /// read-only. /// ////// public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute(RefreshProperties.Repaint); ////// Indicates all properties should /// be invalidated and repainted if the /// property value is changed. This field is read-only. /// ////// public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute(RefreshProperties.None); private RefreshProperties refresh; ////// Indicates that by default /// no /// properties should be refreshed if the property value /// is changed. This field is read-only. /// ////// ///public RefreshPropertiesAttribute(RefreshProperties refresh) { this.refresh = refresh; } /// /// public RefreshProperties RefreshProperties { get { return refresh; } } ////// Gets or sets /// the refresh properties for the member. /// ////// public override bool Equals(object value) { if (value is RefreshPropertiesAttribute) { return(((RefreshPropertiesAttribute)value).RefreshProperties == refresh); } return false; } ////// Overrides object's Equals method. /// ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether the current attribute is the default. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class RefreshPropertiesAttribute : Attribute { ///Specifies how a designer refreshes when the property value is changed. ////// public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute(RefreshProperties.All); ////// Indicates all properties should /// be refreshed if the property value is changed. This field is /// read-only. /// ////// public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute(RefreshProperties.Repaint); ////// Indicates all properties should /// be invalidated and repainted if the /// property value is changed. This field is read-only. /// ////// public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute(RefreshProperties.None); private RefreshProperties refresh; ////// Indicates that by default /// no /// properties should be refreshed if the property value /// is changed. This field is read-only. /// ////// ///public RefreshPropertiesAttribute(RefreshProperties refresh) { this.refresh = refresh; } /// /// public RefreshProperties RefreshProperties { get { return refresh; } } ////// Gets or sets /// the refresh properties for the member. /// ////// public override bool Equals(object value) { if (value is RefreshPropertiesAttribute) { return(((RefreshPropertiesAttribute)value).RefreshProperties == refresh); } return false; } ////// Overrides object's Equals method. /// ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets a value indicating whether the current attribute is the default. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NavigationProgressEventArgs.cs
- SqlMethodAttribute.cs
- DataGridViewUtilities.cs
- ContentType.cs
- SystemWebSectionGroup.cs
- XmlSchemaException.cs
- _ConnectOverlappedAsyncResult.cs
- SafeViewOfFileHandle.cs
- InfoCardCryptoHelper.cs
- RowParagraph.cs
- NavigationProperty.cs
- ReflectionServiceProvider.cs
- ProgressBar.cs
- ConfigurationSection.cs
- SR.cs
- Crypto.cs
- ToolStripScrollButton.cs
- AppModelKnownContentFactory.cs
- TypedTableBaseExtensions.cs
- _AuthenticationState.cs
- HttpWebRequestElement.cs
- ComponentGuaranteesAttribute.cs
- BackgroundWorker.cs
- InlinedAggregationOperatorEnumerator.cs
- RuntimeConfigLKG.cs
- RevocationPoint.cs
- XPathItem.cs
- BufferedReadStream.cs
- DockPattern.cs
- EnumValidator.cs
- WebPartTransformerCollection.cs
- TextTreeUndoUnit.cs
- SafeProcessHandle.cs
- SoapSchemaImporter.cs
- Memoizer.cs
- rsa.cs
- Brushes.cs
- Rotation3DKeyFrameCollection.cs
- CellParaClient.cs
- LayoutTable.cs
- HybridDictionary.cs
- QuotaExceededException.cs
- MergePropertyDescriptor.cs
- EpmHelper.cs
- SecurityCriticalDataForSet.cs
- SmiXetterAccessMap.cs
- BitmapVisualManager.cs
- SecurityDocument.cs
- RegexNode.cs
- RenderCapability.cs
- MediaElementAutomationPeer.cs
- MetadataProperty.cs
- XPathBinder.cs
- AsyncStreamReader.cs
- DataKeyCollection.cs
- CodeTypeReferenceExpression.cs
- ConnectionStringsSection.cs
- OlePropertyStructs.cs
- SafeHandle.cs
- TabletDeviceInfo.cs
- ClientEventManager.cs
- AudioException.cs
- TextServicesDisplayAttributePropertyRanges.cs
- RemoteX509AsymmetricSecurityKey.cs
- SqlMetaData.cs
- regiisutil.cs
- DataTableTypeConverter.cs
- OuterGlowBitmapEffect.cs
- PropertyPath.cs
- WebCategoryAttribute.cs
- ResourceContainer.cs
- AbstractExpressions.cs
- SqlServices.cs
- HScrollProperties.cs
- JulianCalendar.cs
- DriveNotFoundException.cs
- FileSystemEventArgs.cs
- NoResizeSelectionBorderGlyph.cs
- SectionUpdates.cs
- GetPageNumberCompletedEventArgs.cs
- InheritanceRules.cs
- WorkflowIdleBehavior.cs
- InternalControlCollection.cs
- DependencyPropertyChangedEventArgs.cs
- EnumUnknown.cs
- SpecularMaterial.cs
- FontNamesConverter.cs
- MonthChangedEventArgs.cs
- Cursors.cs
- ServiceElementCollection.cs
- XPathConvert.cs
- Int32.cs
- WebPartTransformer.cs
- ResourceWriter.cs
- SqlUDTStorage.cs
- SourceSwitch.cs
- Codec.cs
- PeerContact.cs
- ReaderContextStackData.cs
- MDIWindowDialog.cs