Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Design / RefreshPropertiesAttribute.cs / 1 / 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); } } }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
- CommentEmitter.cs
- ActivityExecutorDelegateInfo.cs
- XslTransform.cs
- Compiler.cs
- SendKeys.cs
- SpellerInterop.cs
- SizeChangedEventArgs.cs
- Visual3DCollection.cs
- __TransparentProxy.cs
- Membership.cs
- XmlChildEnumerator.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DataRecord.cs
- HebrewNumber.cs
- regiisutil.cs
- LicenseProviderAttribute.cs
- XhtmlBasicPanelAdapter.cs
- InputReport.cs
- ComNativeDescriptor.cs
- RegisteredHiddenField.cs
- MimeBasePart.cs
- DBConcurrencyException.cs
- HostingEnvironment.cs
- RouteParser.cs
- XmlFormatReaderGenerator.cs
- ArraySubsetEnumerator.cs
- FormatConvertedBitmap.cs
- ConfigXmlElement.cs
- OutOfMemoryException.cs
- MessageRpc.cs
- NativeMethodsOther.cs
- GridViewDeleteEventArgs.cs
- FlowPosition.cs
- MappingItemCollection.cs
- SqlTriggerAttribute.cs
- AssociationSetEnd.cs
- PagerStyle.cs
- PropertyPushdownHelper.cs
- HtmlTableCellCollection.cs
- EncryptedType.cs
- HtmlInputCheckBox.cs
- WizardSideBarListControlItem.cs
- ExtendedProtectionPolicy.cs
- LifetimeServices.cs
- ConfigViewGenerator.cs
- JoinTreeNode.cs
- ToolBarButton.cs
- BoundField.cs
- ScrollViewerAutomationPeer.cs
- GatewayIPAddressInformationCollection.cs
- DBSqlParserTableCollection.cs
- ParameterBuilder.cs
- PropertyMapper.cs
- UxThemeWrapper.cs
- XmlElementList.cs
- CachedBitmap.cs
- BaseDataListDesigner.cs
- AnonymousIdentificationModule.cs
- ObjectResult.cs
- ImageSource.cs
- FunctionNode.cs
- Subset.cs
- XmlTextReaderImplHelpers.cs
- ListBoxItem.cs
- DocumentPage.cs
- QilVisitor.cs
- SafeEventLogWriteHandle.cs
- RectKeyFrameCollection.cs
- XmlElementAttribute.cs
- OuterGlowBitmapEffect.cs
- ServicePointManager.cs
- SqlFacetAttribute.cs
- ExtensionQuery.cs
- StandardToolWindows.cs
- XmlNamespaceDeclarationsAttribute.cs
- FolderBrowserDialog.cs
- Nullable.cs
- util.cs
- AuthenticationServiceManager.cs
- ToggleProviderWrapper.cs
- Types.cs
- SafeTimerHandle.cs
- UnsafeNativeMethods.cs
- InheritanceAttribute.cs
- RecognitionResult.cs
- IdnElement.cs
- GetPageCompletedEventArgs.cs
- Converter.cs
- HttpServerUtilityBase.cs
- ApplicationActivator.cs
- RSACryptoServiceProvider.cs
- EntityProxyFactory.cs
- ParserOptions.cs
- LambdaCompiler.Binary.cs
- CapabilitiesAssignment.cs
- RSAProtectedConfigurationProvider.cs
- RoutedEventArgs.cs
- DecimalAnimationBase.cs
- Rule.cs
- UpdateManifestForBrowserApplication.cs