Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ScriptingProfileServiceSection.cs
- NullRuntimeConfig.cs
- SoapSchemaMember.cs
- IntPtr.cs
- Color.cs
- DataGridViewRow.cs
- COM2ExtendedTypeConverter.cs
- PropertyInformation.cs
- ParallelTimeline.cs
- SqlNodeAnnotation.cs
- EnvironmentPermission.cs
- WebPart.cs
- TcpPortSharing.cs
- HttpResponseHeader.cs
- MaterialCollection.cs
- UiaCoreProviderApi.cs
- LinqDataSourceValidationException.cs
- HasActivatableWorkflowEvent.cs
- ArgumentException.cs
- BitStack.cs
- FixedSOMPageConstructor.cs
- HttpRequestCacheValidator.cs
- MultipartContentParser.cs
- SoapElementAttribute.cs
- SoapFormatter.cs
- FixedSOMPageConstructor.cs
- ReadOnlyCollection.cs
- RectangleHotSpot.cs
- TreeSet.cs
- PasswordBox.cs
- Evidence.cs
- Rfc2898DeriveBytes.cs
- GridViewDeleteEventArgs.cs
- _Win32.cs
- Point.cs
- PathSegment.cs
- Array.cs
- ObjectKeyFrameCollection.cs
- SerializationHelper.cs
- XmlSchemaGroup.cs
- CodeDomSerializerBase.cs
- InfoCardSymmetricAlgorithm.cs
- NavigateEvent.cs
- NamespaceCollection.cs
- SupportingTokenDuplexChannel.cs
- DllNotFoundException.cs
- AffineTransform3D.cs
- GatewayIPAddressInformationCollection.cs
- DataGridAddNewRow.cs
- LinkTarget.cs
- XPathItem.cs
- IOException.cs
- XmlSchemaExternal.cs
- Pens.cs
- TextChange.cs
- ButtonChrome.cs
- ListItemCollection.cs
- CqlErrorHelper.cs
- remotingproxy.cs
- Membership.cs
- SettingsPropertyIsReadOnlyException.cs
- XPathNavigator.cs
- ToolStripDropDownClosedEventArgs.cs
- ScrollBarRenderer.cs
- PackagePartCollection.cs
- WebMessageEncodingBindingElement.cs
- XmlSignatureManifest.cs
- AnnotationResource.cs
- PropertyAccessVisitor.cs
- ResourceDictionaryCollection.cs
- PersonalizableTypeEntry.cs
- SerializationHelper.cs
- TreeWalkHelper.cs
- ComponentChangedEvent.cs
- MsmqSecureHashAlgorithm.cs
- CodeCastExpression.cs
- EventRoute.cs
- EntityRecordInfo.cs
- SqlUDTStorage.cs
- UnsafePeerToPeerMethods.cs
- PageCodeDomTreeGenerator.cs
- StateRuntime.cs
- CallContext.cs
- EntityCommandCompilationException.cs
- PagerStyle.cs
- LassoSelectionBehavior.cs
- DataSet.cs
- SHA384Cng.cs
- RoleManagerEventArgs.cs
- XPathMultyIterator.cs
- ClickablePoint.cs
- BaseTemplateCodeDomTreeGenerator.cs
- FormatConvertedBitmap.cs
- BitmapDownload.cs
- HuffCodec.cs
- ToolStripStatusLabel.cs
- SubtreeProcessor.cs
- WebPartVerbCollection.cs
- OutputScope.cs
- ClusterUtils.cs