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
- WindowsSlider.cs
- DbConnectionPoolOptions.cs
- XPathNodePointer.cs
- InputQueueChannelAcceptor.cs
- SynchronizationLockException.cs
- ProfileSettingsCollection.cs
- DataGridViewHitTestInfo.cs
- Menu.cs
- InkSerializer.cs
- ImportContext.cs
- Function.cs
- BehaviorEditorPart.cs
- RootProjectionNode.cs
- wmiprovider.cs
- ExtendedPropertyInfo.cs
- GridViewRowPresenter.cs
- RegexParser.cs
- MenuAdapter.cs
- XmlProcessingInstruction.cs
- CompareInfo.cs
- NavigationProperty.cs
- ListMarkerSourceInfo.cs
- SafeRightsManagementHandle.cs
- SchemaTableOptionalColumn.cs
- NetPeerTcpBindingElement.cs
- ListViewItemEventArgs.cs
- SchemaConstraints.cs
- StorageMappingItemLoader.cs
- PaintEvent.cs
- IntSecurity.cs
- DocumentOrderQuery.cs
- Wildcard.cs
- ContainerVisual.cs
- TabControlEvent.cs
- XmlCountingReader.cs
- HwndProxyElementProvider.cs
- QuaternionIndependentAnimationStorage.cs
- ColorAnimationBase.cs
- UIElement.cs
- CompilerError.cs
- EntityClassGenerator.cs
- TripleDES.cs
- DataRowExtensions.cs
- ColorMap.cs
- XmlTextWriter.cs
- RectIndependentAnimationStorage.cs
- FontDifferentiator.cs
- XmlSchemaDocumentation.cs
- SmiEventSink_Default.cs
- OutOfProcStateClientManager.cs
- Int32Rect.cs
- SqlFormatter.cs
- HttpErrorTraceRecord.cs
- RegularExpressionValidator.cs
- DropShadowEffect.cs
- FtpRequestCacheValidator.cs
- DynamicResourceExtensionConverter.cs
- CodeSnippetTypeMember.cs
- DataGridPageChangedEventArgs.cs
- Figure.cs
- HtmlInputButton.cs
- DataRecord.cs
- NamedPermissionSet.cs
- TextEditorThreadLocalStore.cs
- WebPartDisplayModeEventArgs.cs
- ColorTransformHelper.cs
- Helpers.cs
- DocumentGridContextMenu.cs
- EntryPointNotFoundException.cs
- DoubleStorage.cs
- FormViewInsertedEventArgs.cs
- Automation.cs
- AccessDataSourceView.cs
- DataView.cs
- InternalCache.cs
- RegexCapture.cs
- QfeChecker.cs
- MarshalByValueComponent.cs
- WindowsBrush.cs
- Transform3D.cs
- basevalidator.cs
- OperationInvokerBehavior.cs
- TrackingConditionCollection.cs
- WinHttpWebProxyFinder.cs
- IgnoreSectionHandler.cs
- DataTemplateKey.cs
- Preprocessor.cs
- MILUtilities.cs
- RawUIStateInputReport.cs
- FilteredReadOnlyMetadataCollection.cs
- FamilyMap.cs
- PropertyEmitter.cs
- PixelFormat.cs
- CDSsyncETWBCLProvider.cs
- DynamicDataRoute.cs
- ObjectDataProvider.cs
- FilterQuery.cs
- DbConnectionPoolCounters.cs
- PrinterResolution.cs
- BinaryFormatterSinks.cs