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
- Annotation.cs
- SqlInternalConnectionTds.cs
- SoapExtensionTypeElement.cs
- BackgroundFormatInfo.cs
- BlurEffect.cs
- BufferCache.cs
- TextMetrics.cs
- CompilerScopeManager.cs
- RelatedView.cs
- PersonalizableTypeEntry.cs
- InheritanceContextChangedEventManager.cs
- PixelShader.cs
- SafeFileMappingHandle.cs
- ServiceObjectContainer.cs
- ActivitySurrogateSelector.cs
- StickyNoteHelper.cs
- XPathException.cs
- Domain.cs
- CompletionProxy.cs
- HttpModuleAction.cs
- ComponentChangedEvent.cs
- Point4DValueSerializer.cs
- Clause.cs
- SqlDataSourceEnumerator.cs
- SqlMethodAttribute.cs
- XNodeValidator.cs
- CacheMemory.cs
- RijndaelManaged.cs
- MediaTimeline.cs
- DiffuseMaterial.cs
- SqlProfileProvider.cs
- SimpleModelProvider.cs
- HwndKeyboardInputProvider.cs
- WebPartConnectionsConfigureVerb.cs
- keycontainerpermission.cs
- ListControlConvertEventArgs.cs
- PropertyChangedEventManager.cs
- DataGridViewColumn.cs
- GraphicsPathIterator.cs
- Types.cs
- DataControlFieldCollection.cs
- Image.cs
- StrongNameUtility.cs
- RectangleConverter.cs
- COM2TypeInfoProcessor.cs
- RadioButtonFlatAdapter.cs
- HwndMouseInputProvider.cs
- ScriptResourceInfo.cs
- QuaternionIndependentAnimationStorage.cs
- ControlAdapter.cs
- Point4D.cs
- ArraySegment.cs
- Permission.cs
- altserialization.cs
- HttpConfigurationSystem.cs
- SecureEnvironment.cs
- SymLanguageType.cs
- WebPartConnectionsCancelEventArgs.cs
- CodeIterationStatement.cs
- UniqueID.cs
- ConnectionInterfaceCollection.cs
- HtmlInputRadioButton.cs
- DataStreamFromComStream.cs
- ValidationErrorEventArgs.cs
- InkCanvasSelectionAdorner.cs
- SapiRecoContext.cs
- PropertyPath.cs
- AlphabeticalEnumConverter.cs
- TemplateKey.cs
- KeyedQueue.cs
- SafeHandle.cs
- BindingManagerDataErrorEventArgs.cs
- CapabilitiesSection.cs
- __FastResourceComparer.cs
- StorageScalarPropertyMapping.cs
- MetadataItemSerializer.cs
- UIElementPropertyUndoUnit.cs
- ClientCredentials.cs
- GC.cs
- TextBox.cs
- TextBoxAutoCompleteSourceConverter.cs
- MainMenu.cs
- NamedObject.cs
- RichTextBox.cs
- DataGridViewControlCollection.cs
- ParenthesizePropertyNameAttribute.cs
- SQLGuidStorage.cs
- Typeface.cs
- ServiceXNameTypeConverter.cs
- CorrelationValidator.cs
- DataServices.cs
- XmlElementCollection.cs
- VectorAnimationBase.cs
- webbrowsersite.cs
- BindingMAnagerBase.cs
- HttpHandlerAction.cs
- ImageList.cs
- RuntimeArgumentHandle.cs
- OleDbWrapper.cs
- COM2IPerPropertyBrowsingHandler.cs