Code:
/ DotNET / DotNET / 8.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
- TextElementEditingBehaviorAttribute.cs
- RadioButton.cs
- ValueType.cs
- NavigationExpr.cs
- CachedCompositeFamily.cs
- QueueSurrogate.cs
- StickyNote.cs
- RefreshPropertiesAttribute.cs
- OrderedEnumerableRowCollection.cs
- WebPartMinimizeVerb.cs
- FilteredXmlReader.cs
- HttpResponseMessageProperty.cs
- ReferenceList.cs
- SpeechSynthesizer.cs
- VectorValueSerializer.cs
- Cursor.cs
- odbcmetadatacollectionnames.cs
- MessageEnumerator.cs
- FilteredAttributeCollection.cs
- XmlBinaryWriterSession.cs
- FunctionNode.cs
- Debug.cs
- Vertex.cs
- XhtmlBasicValidatorAdapter.cs
- System.Data_BID.cs
- XmlIlVisitor.cs
- ClaimComparer.cs
- FlowDocument.cs
- CurrentChangingEventArgs.cs
- ProjectionPathSegment.cs
- Button.cs
- SessionSwitchEventArgs.cs
- _SafeNetHandles.cs
- JsonStringDataContract.cs
- GenericEnumConverter.cs
- PassportAuthentication.cs
- OleDbRowUpdatedEvent.cs
- TableSectionStyle.cs
- ServiceProviders.cs
- FilteredAttributeCollection.cs
- FormsAuthenticationUser.cs
- HtmlElementErrorEventArgs.cs
- UserValidatedEventArgs.cs
- SafeCryptContextHandle.cs
- DbReferenceCollection.cs
- TextPattern.cs
- MissingSatelliteAssemblyException.cs
- UrlMappingsSection.cs
- XPathNodeHelper.cs
- HttpException.cs
- Splitter.cs
- SchemaNotation.cs
- DataBindingsDialog.cs
- SignerInfo.cs
- LazyTextWriterCreator.cs
- ItemAutomationPeer.cs
- DecimalAnimation.cs
- InternalTypeHelper.cs
- GroupItemAutomationPeer.cs
- Application.cs
- CloseSequenceResponse.cs
- RowToParametersTransformer.cs
- DiffuseMaterial.cs
- Bind.cs
- TableChangeProcessor.cs
- InputLangChangeRequestEvent.cs
- OracleNumber.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ColumnResizeUndoUnit.cs
- TheQuery.cs
- TagPrefixAttribute.cs
- FormsAuthenticationConfiguration.cs
- ClientConfigPaths.cs
- NavigationHelper.cs
- DataObjectEventArgs.cs
- HashAlgorithm.cs
- StreamUpgradeProvider.cs
- SimpleMailWebEventProvider.cs
- DataBoundControlHelper.cs
- LeaseManager.cs
- DiscoveryDocumentSerializer.cs
- MulticastOption.cs
- BindableTemplateBuilder.cs
- PrintControllerWithStatusDialog.cs
- XmlSchemaValidator.cs
- MultiView.cs
- XmlText.cs
- LineServicesCallbacks.cs
- ServiceManager.cs
- CheckBoxRenderer.cs
- XmlEntity.cs
- DbMetaDataFactory.cs
- TaskFactory.cs
- GridViewRow.cs
- HostingEnvironment.cs
- PropertyFilterAttribute.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- WebPartConnection.cs
- StateRuntime.cs