Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }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
- SpeechRecognitionEngine.cs
- ContractsBCL.cs
- SectionInput.cs
- PropertyManager.cs
- ApplicationException.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- PageCodeDomTreeGenerator.cs
- ControlValuePropertyAttribute.cs
- ProgressPage.cs
- Debug.cs
- WindowsToolbarAsMenu.cs
- WmlFormAdapter.cs
- SafeThreadHandle.cs
- FontFamilyValueSerializer.cs
- WebResponse.cs
- DataSourceHelper.cs
- HTMLTagNameToTypeMapper.cs
- VSDExceptions.cs
- StrongName.cs
- RightsManagementPermission.cs
- QuestionEventArgs.cs
- InnerItemCollectionView.cs
- EntityContainerRelationshipSetEnd.cs
- AudioFormatConverter.cs
- ClientProxyGenerator.cs
- ObjectConverter.cs
- AsymmetricAlgorithm.cs
- QilDataSource.cs
- WebConfigurationHostFileChange.cs
- AuthenticationService.cs
- TextSelectionHighlightLayer.cs
- ViewValidator.cs
- CookieProtection.cs
- ParseNumbers.cs
- HtmlToClrEventProxy.cs
- IsolatedStorageFilePermission.cs
- ActivityCollectionMarkupSerializer.cs
- WebBrowserBase.cs
- DatagridviewDisplayedBandsData.cs
- TemplateContent.cs
- XmlSchemaSimpleTypeUnion.cs
- ProtocolsConfigurationHandler.cs
- ProxyWebPartManager.cs
- TimeSpanConverter.cs
- DetailsViewActionList.cs
- CodeTypeParameterCollection.cs
- WebRequest.cs
- TargetControlTypeAttribute.cs
- ColumnResizeUndoUnit.cs
- StatusBarPanel.cs
- RuntimeHandles.cs
- CoTaskMemHandle.cs
- QilTargetType.cs
- RotateTransform.cs
- DynamicValidatorEventArgs.cs
- OracleColumn.cs
- SslStream.cs
- ProtectedConfiguration.cs
- ExtenderHelpers.cs
- SqlUdtInfo.cs
- TerminatorSinks.cs
- User.cs
- MetadataException.cs
- OdbcStatementHandle.cs
- MenuTracker.cs
- InvalidWMPVersionException.cs
- ValueTypeFixupInfo.cs
- SqlMetaData.cs
- PassportAuthenticationEventArgs.cs
- DockPattern.cs
- LinkDescriptor.cs
- AuthorizationBehavior.cs
- GroupLabel.cs
- BinaryMethodMessage.cs
- SEHException.cs
- Line.cs
- LookupNode.cs
- DataControlField.cs
- ConsoleKeyInfo.cs
- Group.cs
- XamlSerializerUtil.cs
- BidOverLoads.cs
- InputLanguage.cs
- Function.cs
- PageDeviceFont.cs
- PrintDialog.cs
- PagesChangedEventArgs.cs
- GatewayDefinition.cs
- ColorAnimationBase.cs
- SizeAnimationBase.cs
- DomainUpDown.cs
- Rule.cs
- CounterSet.cs
- VectorConverter.cs
- FunctionNode.cs
- DataGridViewLayoutData.cs
- TranslateTransform.cs
- MultiDataTrigger.cs
- SmtpMail.cs
- SortQuery.cs