Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / RefreshPropertiesAttribute.cs / 1305376 / 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
- DataGrid.cs
- PerformanceCounter.cs
- SerializableAttribute.cs
- WindowPattern.cs
- EncoderFallback.cs
- streamingZipPartStream.cs
- XmlEntityReference.cs
- RequiredAttributeAttribute.cs
- CapabilitiesAssignment.cs
- Missing.cs
- DisableDpiAwarenessAttribute.cs
- XmlSecureResolver.cs
- LogArchiveSnapshot.cs
- _NegoState.cs
- ComAdminInterfaces.cs
- TextDecoration.cs
- Point3DAnimationBase.cs
- ItemsControl.cs
- LayoutEngine.cs
- XmlEnumAttribute.cs
- TextBoxBaseDesigner.cs
- ErrorRuntimeConfig.cs
- HttpResponseHeader.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FieldAccessException.cs
- ColumnTypeConverter.cs
- NullableLongMinMaxAggregationOperator.cs
- ImageMap.cs
- Config.cs
- ValidationErrorCollection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SingleAnimationBase.cs
- BasicHttpMessageCredentialType.cs
- HttpContextBase.cs
- XmlTextWriter.cs
- StrongTypingException.cs
- SystemEvents.cs
- HttpListenerRequest.cs
- DateTimeEditor.cs
- ConfigurationElementProperty.cs
- JavaScriptSerializer.cs
- ExtensionSimplifierMarkupObject.cs
- AccessibilityHelperForXpWin2k3.cs
- SqlNotificationRequest.cs
- SessionStateItemCollection.cs
- DBSchemaRow.cs
- SQLDecimalStorage.cs
- RuntimeConfig.cs
- Stackframe.cs
- ArrayEditor.cs
- ZipIOFileItemStream.cs
- RijndaelManagedTransform.cs
- ColorDialog.cs
- NameValuePair.cs
- ADConnectionHelper.cs
- ReservationNotFoundException.cs
- RelatedCurrencyManager.cs
- BoundsDrawingContextWalker.cs
- RowToFieldTransformer.cs
- BuildDependencySet.cs
- ParallelQuery.cs
- TableMethodGenerator.cs
- LoginName.cs
- LocalBuilder.cs
- MediaContextNotificationWindow.cs
- PageCache.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- _CookieModule.cs
- ColumnMap.cs
- WebResourceUtil.cs
- SafeProcessHandle.cs
- SecurityElement.cs
- Constraint.cs
- ToolStripDropDownDesigner.cs
- FrameworkRichTextComposition.cs
- SqlServices.cs
- ScriptIgnoreAttribute.cs
- PlainXmlWriter.cs
- BufferCache.cs
- IUnknownConstantAttribute.cs
- Point3DCollectionConverter.cs
- SmtpMail.cs
- MetaModel.cs
- DataObjectMethodAttribute.cs
- DeviceContext.cs
- Utils.cs
- ViewCellRelation.cs
- COM2PictureConverter.cs
- DbConnectionClosed.cs
- KeyValuePair.cs
- DataSet.cs
- CmsUtils.cs
- COM2Enum.cs
- COM2IProvidePropertyBuilderHandler.cs
- TemplateControlBuildProvider.cs
- MessageAction.cs
- DockPattern.cs
- GPPOINTF.cs
- ConnectionString.cs
- LeafCellTreeNode.cs