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
- RightsManagementInformation.cs
- HierarchicalDataSourceIDConverter.cs
- SafeSecurityHandles.cs
- Point.cs
- ObjectStateManager.cs
- EventHandlingScope.cs
- HttpCookiesSection.cs
- _SingleItemRequestCache.cs
- CopyNamespacesAction.cs
- MapPathBasedVirtualPathProvider.cs
- FolderLevelBuildProviderCollection.cs
- ConnectionStringsExpressionBuilder.cs
- WebBrowserPermission.cs
- DateTimeStorage.cs
- UnitySerializationHolder.cs
- VectorConverter.cs
- PKCS1MaskGenerationMethod.cs
- SerializationStore.cs
- DateTimeConverter.cs
- PointHitTestParameters.cs
- WizardStepBase.cs
- WindowsSolidBrush.cs
- ClaimSet.cs
- TreeViewHitTestInfo.cs
- SystemBrushes.cs
- RoutedEventValueSerializer.cs
- DataTableReader.cs
- IntSecurity.cs
- FormatSettings.cs
- EntityPropertyMappingAttribute.cs
- DatePickerTextBox.cs
- Environment.cs
- QueuePropertyVariants.cs
- ProxyWebPart.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- TargetFrameworkUtil.cs
- _AcceptOverlappedAsyncResult.cs
- SignatureResourcePool.cs
- InvalidCastException.cs
- SchemaComplexType.cs
- WindowsListViewItemStartMenu.cs
- Int64AnimationBase.cs
- ProcessInputEventArgs.cs
- MenuAutomationPeer.cs
- SystemPens.cs
- ImageCodecInfo.cs
- Thickness.cs
- TextTreeInsertUndoUnit.cs
- ListParaClient.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ProcessProtocolHandler.cs
- FormView.cs
- CodeAttachEventStatement.cs
- PbrsForward.cs
- ArithmeticLiteral.cs
- Point3DCollectionConverter.cs
- BamlMapTable.cs
- CryptoProvider.cs
- dataSvcMapFileLoader.cs
- CategoryGridEntry.cs
- MetadataSerializer.cs
- Viewport3DVisual.cs
- TypeConverterHelper.cs
- Perspective.cs
- ValidatingPropertiesEventArgs.cs
- ValueType.cs
- GridViewRowCollection.cs
- ConfigurationStrings.cs
- WebHttpBehavior.cs
- CopyOfAction.cs
- DataGridViewCellCollection.cs
- ResourceManager.cs
- XmlNullResolver.cs
- CustomAttributeSerializer.cs
- OverrideMode.cs
- StylusButtonCollection.cs
- IsolatedStorageFile.cs
- FixedLineResult.cs
- StylusButton.cs
- QuaternionConverter.cs
- ColorTransformHelper.cs
- ScopeElement.cs
- DataServiceContext.cs
- CollectionViewGroupInternal.cs
- TextFormatter.cs
- Int64AnimationBase.cs
- EtwTrace.cs
- CodeSubDirectoriesCollection.cs
- SystemMulticastIPAddressInformation.cs
- InstanceHandleReference.cs
- TextOnlyOutput.cs
- ConfigXmlDocument.cs
- GroupItemAutomationPeer.cs
- MsdtcWrapper.cs
- Guid.cs
- ProjectionPruner.cs
- ADConnectionHelper.cs
- WS2007FederationHttpBindingCollectionElement.cs
- MatrixAnimationUsingKeyFrames.cs
- TextTreeUndoUnit.cs