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
- HtmlToClrEventProxy.cs
- LookupNode.cs
- FloaterBaseParagraph.cs
- EdmScalarPropertyAttribute.cs
- Lock.cs
- SharedPerformanceCounter.cs
- ObjectDataSourceMethodEventArgs.cs
- SpecialNameAttribute.cs
- MD5.cs
- SortKey.cs
- FrameworkElementAutomationPeer.cs
- PEFileEvidenceFactory.cs
- AvTraceFormat.cs
- HiddenField.cs
- WmlListAdapter.cs
- HostingEnvironmentSection.cs
- IdnElement.cs
- Memoizer.cs
- StorageTypeMapping.cs
- Html32TextWriter.cs
- CellIdBoolean.cs
- MasterPageBuildProvider.cs
- TypeUnloadedException.cs
- VersionedStreamOwner.cs
- TemplateAction.cs
- CodeSnippetCompileUnit.cs
- Tile.cs
- ScalarConstant.cs
- ByteStream.cs
- DataGridComboBoxColumn.cs
- ColumnResult.cs
- Localizer.cs
- PerformanceCountersElement.cs
- UrlPath.cs
- xsdvalidator.cs
- ClassicBorderDecorator.cs
- PermissionRequestEvidence.cs
- ModulesEntry.cs
- ResumeStoryboard.cs
- ColorContextHelper.cs
- PropertyTabAttribute.cs
- IntellisenseTextBox.cs
- PieceNameHelper.cs
- XmlToDatasetMap.cs
- RemoteWebConfigurationHost.cs
- ApplicationServicesHostFactory.cs
- OutputCacheSettings.cs
- LingerOption.cs
- Route.cs
- ClientTargetSection.cs
- Console.cs
- JavaScriptString.cs
- QueryStatement.cs
- SynchronizedCollection.cs
- DocumentSchemaValidator.cs
- ResourceExpression.cs
- GridViewCommandEventArgs.cs
- ClientTarget.cs
- WindowsAuthenticationModule.cs
- DispatcherHookEventArgs.cs
- BindingBase.cs
- MimeFormImporter.cs
- InkCanvasInnerCanvas.cs
- DelegateArgument.cs
- FederatedMessageSecurityOverHttp.cs
- DataSysAttribute.cs
- DataObjectSettingDataEventArgs.cs
- AsyncResult.cs
- ScriptingWebServicesSectionGroup.cs
- GeneralTransformGroup.cs
- KnownBoxes.cs
- LinkClickEvent.cs
- CodeIterationStatement.cs
- HorizontalAlignConverter.cs
- ErrorEventArgs.cs
- RecordsAffectedEventArgs.cs
- XmlILOptimizerVisitor.cs
- SettingsProperty.cs
- TextDecorationCollection.cs
- GPRECT.cs
- AnimationStorage.cs
- DeviceContext2.cs
- SinglePageViewer.cs
- EntityKeyElement.cs
- Matrix.cs
- TargetInvocationException.cs
- AbstractDataSvcMapFileLoader.cs
- WindowsListViewItem.cs
- XmlJsonWriter.cs
- PageHandlerFactory.cs
- TraceLog.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- VolatileEnlistmentState.cs
- EnumUnknown.cs
- DocobjHost.cs
- SqlDataReader.cs
- Header.cs
- NestedContainer.cs
- URLString.cs
- DbBuffer.cs