Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether the current attribute is the default. ///// 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
- MediaTimeline.cs
- EllipseGeometry.cs
- BuildManager.cs
- MonthCalendar.cs
- DataListItem.cs
- NameGenerator.cs
- DispatcherProcessingDisabled.cs
- BrowserCapabilitiesFactoryBase.cs
- EntityDataSourceStatementEditor.cs
- PersonalizationProviderCollection.cs
- PrimitiveDataContract.cs
- LocalsItemDescription.cs
- ConstraintConverter.cs
- KnownColorTable.cs
- ChannelManager.cs
- VisualTreeHelper.cs
- MembershipValidatePasswordEventArgs.cs
- ContainerSelectorActiveEvent.cs
- ToolStripComboBox.cs
- TableAutomationPeer.cs
- ExpandedWrapper.cs
- SystemParameters.cs
- ListItemConverter.cs
- VisualStates.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BamlResourceContent.cs
- DoubleAnimationUsingPath.cs
- TimeSpanHelper.cs
- DataGridViewHeaderCell.cs
- CompositeFontInfo.cs
- Symbol.cs
- ImagingCache.cs
- CodeBlockBuilder.cs
- TypedTableBase.cs
- SafeRightsManagementEnvironmentHandle.cs
- AutomationPeer.cs
- PageThemeCodeDomTreeGenerator.cs
- ResourcesBuildProvider.cs
- AspNetCacheProfileAttribute.cs
- ConfigurationException.cs
- PtsHelper.cs
- KnownTypes.cs
- Image.cs
- FormsAuthenticationEventArgs.cs
- ObfuscationAttribute.cs
- SimpleParser.cs
- TableProvider.cs
- documentation.cs
- WebPartsPersonalization.cs
- IImplicitResourceProvider.cs
- ObjectManager.cs
- TemplateManager.cs
- ImageIndexConverter.cs
- TypeForwardedToAttribute.cs
- Queue.cs
- XmlSchemaImporter.cs
- ComponentRenameEvent.cs
- HttpCookiesSection.cs
- CodeRemoveEventStatement.cs
- DataGridPageChangedEventArgs.cs
- MetadataItem_Static.cs
- XmlSerializerVersionAttribute.cs
- ChangeBlockUndoRecord.cs
- SafeHandle.cs
- NamedPermissionSet.cs
- References.cs
- PublishLicense.cs
- BlockUIContainer.cs
- StructuredType.cs
- ConsumerConnectionPointCollection.cs
- BamlLocalizableResource.cs
- OnOperation.cs
- OleDbInfoMessageEvent.cs
- WebServiceBindingAttribute.cs
- SeparatorAutomationPeer.cs
- RequestCachePolicy.cs
- OLEDB_Enum.cs
- XmlSortKey.cs
- TextBoxBase.cs
- ProxyWebPartManager.cs
- NotifyParentPropertyAttribute.cs
- FontDriver.cs
- CodeDomConfigurationHandler.cs
- WebReferencesBuildProvider.cs
- PrintPreviewDialog.cs
- ObjectStateFormatter.cs
- VisualBasicSettings.cs
- Accessible.cs
- MatchingStyle.cs
- AsyncDataRequest.cs
- ScriptDescriptor.cs
- XmlNamespaceMapping.cs
- TreeIterator.cs
- WebPartVerb.cs
- SmtpNegotiateAuthenticationModule.cs
- GridViewRowEventArgs.cs
- SamlAuthorizationDecisionClaimResource.cs
- FixedPageStructure.cs
- BlockCollection.cs
- ProxyHelper.cs