Code:
/ FX-1434 / FX-1434 / 1.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
- SystemIPAddressInformation.cs
- Soap.cs
- DataTableCollection.cs
- FlowDocumentPage.cs
- NetSectionGroup.cs
- EncodingDataItem.cs
- DBSchemaRow.cs
- Translator.cs
- ProfileSettingsCollection.cs
- ParameterModifier.cs
- NonPrimarySelectionGlyph.cs
- KeyBinding.cs
- DataServiceRequestOfT.cs
- BrowserCapabilitiesFactoryBase.cs
- Encoder.cs
- Semaphore.cs
- MetadataCache.cs
- CustomPopupPlacement.cs
- ApplyTemplatesAction.cs
- bindurihelper.cs
- TimeoutConverter.cs
- XmlEntityReference.cs
- DataGridViewToolTip.cs
- EdmSchemaError.cs
- MarkupCompiler.cs
- ValuePatternIdentifiers.cs
- ManifestResourceInfo.cs
- HashRepartitionStream.cs
- XmlWellformedWriter.cs
- RoleBoolean.cs
- CallInfo.cs
- WinCategoryAttribute.cs
- SqlMethods.cs
- TaskScheduler.cs
- SoapCodeExporter.cs
- _AutoWebProxyScriptHelper.cs
- ApplicationTrust.cs
- SQLInt16.cs
- SqlCaseSimplifier.cs
- LicenseContext.cs
- ReaderWriterLockWrapper.cs
- DiffuseMaterial.cs
- RowCache.cs
- UnsafeNativeMethods.cs
- BaseCodePageEncoding.cs
- DocumentCollection.cs
- TripleDESCryptoServiceProvider.cs
- PrefixHandle.cs
- PathFigureCollection.cs
- Visual3D.cs
- DoubleAnimationClockResource.cs
- MarkupCompilePass1.cs
- GroupBoxAutomationPeer.cs
- IntPtr.cs
- DataObjectSettingDataEventArgs.cs
- TableSectionStyle.cs
- CodeAttributeDeclarationCollection.cs
- DirectoryInfo.cs
- ServiceMetadataPublishingElement.cs
- WSDualHttpSecurityMode.cs
- EntityViewGenerationConstants.cs
- SamlAssertionKeyIdentifierClause.cs
- ExtenderControl.cs
- AlphaSortedEnumConverter.cs
- ValidationEventArgs.cs
- TickBar.cs
- TextFormatterImp.cs
- BatchStream.cs
- DataServiceQueryException.cs
- ExceptionUtility.cs
- PersistenceProviderBehavior.cs
- QueryCacheEntry.cs
- BitmapEffectCollection.cs
- BlurEffect.cs
- DataListCommandEventArgs.cs
- AssemblyBuilder.cs
- TimestampInformation.cs
- DispatcherObject.cs
- ReverseComparer.cs
- CodeStatementCollection.cs
- UserControl.cs
- ReturnEventArgs.cs
- BehaviorDragDropEventArgs.cs
- ConsoleTraceListener.cs
- Popup.cs
- OpenFileDialog.cs
- WebPartRestoreVerb.cs
- GridEntryCollection.cs
- TypefaceCollection.cs
- ConsumerConnectionPointCollection.cs
- TransformProviderWrapper.cs
- IntermediatePolicyValidator.cs
- TypeBuilderInstantiation.cs
- ForceCopyBuildProvider.cs
- TraceHwndHost.cs
- BamlRecordHelper.cs
- UserControlParser.cs
- MailDefinition.cs
- IDispatchConstantAttribute.cs
- SqlCacheDependency.cs