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
- XPathNodeList.cs
- TimelineGroup.cs
- RealProxy.cs
- StringConverter.cs
- DrawingVisual.cs
- GraphicsContainer.cs
- Range.cs
- CompoundFileDeflateTransform.cs
- DynamicRenderer.cs
- SemanticResultValue.cs
- BuilderPropertyEntry.cs
- Bold.cs
- BrushConverter.cs
- HttpRuntimeSection.cs
- MultiView.cs
- PointLightBase.cs
- PolicyStatement.cs
- HierarchicalDataBoundControlAdapter.cs
- DataControlPagerLinkButton.cs
- Array.cs
- ConfigXmlSignificantWhitespace.cs
- SafeUserTokenHandle.cs
- XmlDsigSep2000.cs
- SafeNativeMethods.cs
- SplashScreenNativeMethods.cs
- VariableExpressionConverter.cs
- HttpCapabilitiesBase.cs
- ActionFrame.cs
- WebPartsPersonalizationAuthorization.cs
- ConstrainedDataObject.cs
- CreateUserErrorEventArgs.cs
- StaticExtension.cs
- CodeParameterDeclarationExpression.cs
- DirectionalLight.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- RemoteWebConfigurationHost.cs
- ZipIOLocalFileBlock.cs
- MimeMultiPart.cs
- ISFClipboardData.cs
- TraceContextRecord.cs
- RectangleGeometry.cs
- DataGridViewDesigner.cs
- Compress.cs
- DesignerCatalogPartChrome.cs
- InkCanvasSelectionAdorner.cs
- ParseHttpDate.cs
- PassportAuthentication.cs
- Message.cs
- DataSourceCacheDurationConverter.cs
- RectIndependentAnimationStorage.cs
- SqlBooleanMismatchVisitor.cs
- BaseCodePageEncoding.cs
- ProfilePropertyNameValidator.cs
- RelOps.cs
- ToolStripDropTargetManager.cs
- BitmapEffectGeneralTransform.cs
- StreamProxy.cs
- ConnectionProviderAttribute.cs
- MemberDomainMap.cs
- XpsImage.cs
- ToolboxItemFilterAttribute.cs
- SystemBrushes.cs
- FormsAuthenticationModule.cs
- DataGridViewCellStateChangedEventArgs.cs
- ObjectComplexPropertyMapping.cs
- SqlUDTStorage.cs
- Effect.cs
- ObjectDataSourceMethodEventArgs.cs
- NumericUpDown.cs
- LogRestartAreaEnumerator.cs
- WebResourceUtil.cs
- SoapReflectionImporter.cs
- CompilerTypeWithParams.cs
- DocumentViewerBaseAutomationPeer.cs
- Vector3DCollection.cs
- CustomCredentialPolicy.cs
- DataGridViewColumnTypeEditor.cs
- SignatureDescription.cs
- DecimalConstantAttribute.cs
- CustomLineCap.cs
- LogAppendAsyncResult.cs
- _NTAuthentication.cs
- BrowsableAttribute.cs
- milrender.cs
- StorageMappingItemLoader.cs
- TargetConverter.cs
- StylusOverProperty.cs
- XmlSchemaSimpleTypeList.cs
- LocalizationComments.cs
- XPathAncestorQuery.cs
- HttpSysSettings.cs
- ResourceDictionaryCollection.cs
- GridViewSelectEventArgs.cs
- TypeSystemHelpers.cs
- LambdaCompiler.Binary.cs
- EFAssociationProvider.cs
- DataSet.cs
- InvokeProviderWrapper.cs
- TemplateBuilder.cs
- XmlResolver.cs