Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SystemNetworkInterface.cs
- DesignerLoader.cs
- RegisteredDisposeScript.cs
- TableLayoutRowStyleCollection.cs
- UrlPath.cs
- BindingSourceDesigner.cs
- Base64Encoder.cs
- XmlSchemaProviderAttribute.cs
- ExcCanonicalXml.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- MessageEncoderFactory.cs
- DateTimeFormat.cs
- CssClassPropertyAttribute.cs
- CrossAppDomainChannel.cs
- FixedDocument.cs
- ExtendedPropertyDescriptor.cs
- TraceProvider.cs
- DeviceContext2.cs
- MachineKeyConverter.cs
- _LazyAsyncResult.cs
- EndOfStreamException.cs
- DocumentViewer.cs
- TextDecorationCollection.cs
- Transaction.cs
- WindowsContainer.cs
- SafeViewOfFileHandle.cs
- ZoneLinkButton.cs
- ScrollableControl.cs
- CustomBinding.cs
- Listbox.cs
- IDictionary.cs
- StateRuntime.cs
- VisualCollection.cs
- ServicePointManager.cs
- PathData.cs
- EventLog.cs
- RandomDelaySendsAsyncResult.cs
- NetworkInterface.cs
- Message.cs
- MergePropertyDescriptor.cs
- NodeCounter.cs
- KeyboardEventArgs.cs
- BevelBitmapEffect.cs
- KnownBoxes.cs
- VoiceInfo.cs
- PropertyMappingExceptionEventArgs.cs
- BatchParser.cs
- SafeSecurityHandles.cs
- LayoutManager.cs
- OpenTypeLayoutCache.cs
- ReferencedAssembly.cs
- GenericRootAutomationPeer.cs
- GridPatternIdentifiers.cs
- WebHttpBindingElement.cs
- OutputScope.cs
- ByeMessageCD1.cs
- MorphHelper.cs
- MatrixCamera.cs
- OletxDependentTransaction.cs
- ReversePositionQuery.cs
- TimeStampChecker.cs
- MappingException.cs
- CmsUtils.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DiscreteKeyFrames.cs
- SmiSettersStream.cs
- NestedContainer.cs
- MediaElement.cs
- NTAccount.cs
- TemplateLookupAction.cs
- OuterGlowBitmapEffect.cs
- XmlArrayItemAttributes.cs
- XPathAncestorQuery.cs
- WizardPanel.cs
- FormViewModeEventArgs.cs
- PeerUnsafeNativeCryptMethods.cs
- TemplateBindingExpression.cs
- CheckBoxField.cs
- DocumentPage.cs
- PointAnimationBase.cs
- ChangeTracker.cs
- RoutedEventValueSerializer.cs
- PopupRootAutomationPeer.cs
- querybuilder.cs
- DataSysAttribute.cs
- BinaryOperationBinder.cs
- EntityTypeBase.cs
- PathTooLongException.cs
- BitmapSourceSafeMILHandle.cs
- XXXInfos.cs
- QilStrConcat.cs
- StringAnimationUsingKeyFrames.cs
- ModuleBuilder.cs
- SmiEventSink_Default.cs
- PaperSource.cs
- NeutralResourcesLanguageAttribute.cs
- ConfigDefinitionUpdates.cs
- EntitySqlQueryCacheEntry.cs