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
- TrackingConditionCollection.cs
- VirtualizedItemProviderWrapper.cs
- DBDataPermission.cs
- StatusBar.cs
- PtsPage.cs
- SHA384.cs
- SettingsBase.cs
- PlatformCulture.cs
- EUCJPEncoding.cs
- DllNotFoundException.cs
- DoubleLinkListEnumerator.cs
- DocumentPageHost.cs
- ControlAdapter.cs
- XmlJsonReader.cs
- ViewLoader.cs
- BindingValueChangedEventArgs.cs
- DataGridViewHeaderCell.cs
- WindowsTreeView.cs
- ObjectView.cs
- FormsAuthenticationUser.cs
- DataGridColumnHeader.cs
- NullableIntAverageAggregationOperator.cs
- Ipv6Element.cs
- DataProtection.cs
- XmlAttributeProperties.cs
- clipboard.cs
- NullableLongAverageAggregationOperator.cs
- IPipelineRuntime.cs
- FormDesigner.cs
- Debugger.cs
- PrintDialog.cs
- SQLUtility.cs
- ObservableDictionary.cs
- Int32.cs
- CrossSiteScriptingValidation.cs
- NameNode.cs
- ListViewHitTestInfo.cs
- safesecurityhelperavalon.cs
- QueryStringParameter.cs
- MessagingDescriptionAttribute.cs
- TransformCollection.cs
- NullableBoolConverter.cs
- FieldMetadata.cs
- TextParagraphCache.cs
- FontStretches.cs
- ComboBoxRenderer.cs
- HttpModulesSection.cs
- SQLDouble.cs
- ParallelRangeManager.cs
- DataContractJsonSerializer.cs
- MonikerBuilder.cs
- Util.cs
- TagMapCollection.cs
- EditorBrowsableAttribute.cs
- WorkflowWebService.cs
- HtmlElementCollection.cs
- SymDocumentType.cs
- ServiceMoniker.cs
- SoapInteropTypes.cs
- ClientViaElement.cs
- CodeNamespaceImportCollection.cs
- MouseGesture.cs
- KeyNotFoundException.cs
- CachedTypeface.cs
- RelatedCurrencyManager.cs
- XamlHostingSection.cs
- BulletedListEventArgs.cs
- RepeatEnumerable.cs
- Symbol.cs
- SecondaryIndexDefinition.cs
- StructuredTypeEmitter.cs
- XmlNodeReader.cs
- BinaryParser.cs
- DiscoveryClientChannelBase.cs
- DataGridViewLinkCell.cs
- MethodCallTranslator.cs
- MergeFilterQuery.cs
- WindowsListViewSubItem.cs
- Substitution.cs
- ObjectStateEntry.cs
- JavascriptCallbackResponseProperty.cs
- CacheVirtualItemsEvent.cs
- DataGridHeaderBorder.cs
- LockRecursionException.cs
- BindUriHelper.cs
- DiscoveryDocumentSerializer.cs
- ButtonAutomationPeer.cs
- LoadWorkflowAsyncResult.cs
- SessionStateContainer.cs
- KeyNotFoundException.cs
- UriSchemeKeyedCollection.cs
- DbParameterCollection.cs
- XdrBuilder.cs
- XmlSchemaGroupRef.cs
- StylusTip.cs
- SecondaryIndexDefinition.cs
- WorkerRequest.cs
- HtmlCommandAdapter.cs
- MarkupExtensionParser.cs
- PropertySourceInfo.cs