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
- XmlChoiceIdentifierAttribute.cs
- NavigationProgressEventArgs.cs
- EndpointAddressElementBase.cs
- ItemsChangedEventArgs.cs
- wmiprovider.cs
- Debug.cs
- ResourceKey.cs
- NonBatchDirectoryCompiler.cs
- MenuAutomationPeer.cs
- NonBatchDirectoryCompiler.cs
- FontResourceCache.cs
- Relationship.cs
- TemplateColumn.cs
- EmptyStringExpandableObjectConverter.cs
- CharEnumerator.cs
- RootBrowserWindowProxy.cs
- XmlCDATASection.cs
- SqlBooleanizer.cs
- DocumentsTrace.cs
- ControlEvent.cs
- _NetRes.cs
- HttpResponseHeader.cs
- RijndaelManagedTransform.cs
- RIPEMD160Managed.cs
- DataControlFieldsEditor.cs
- EmptyStringExpandableObjectConverter.cs
- CodeObjectCreateExpression.cs
- ClientSponsor.cs
- TabControlCancelEvent.cs
- PcmConverter.cs
- LinearKeyFrames.cs
- WMICapabilities.cs
- TabControlCancelEvent.cs
- AlternateView.cs
- BitmapVisualManager.cs
- OutputScopeManager.cs
- BufferModeSettings.cs
- DynamicDataRouteHandler.cs
- ConsoleCancelEventArgs.cs
- SimpleType.cs
- FormatException.cs
- StubHelpers.cs
- SqlCommand.cs
- FontWeights.cs
- SqlExpressionNullability.cs
- HttpChannelHelpers.cs
- ScriptRegistrationManager.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- HtmlMeta.cs
- DateTimeValueSerializerContext.cs
- MgmtConfigurationRecord.cs
- Calendar.cs
- CellParaClient.cs
- ProfilePropertySettingsCollection.cs
- AssemblyBuilder.cs
- BindableTemplateBuilder.cs
- Function.cs
- SQLInt64Storage.cs
- OracleNumber.cs
- ZipIOExtraField.cs
- PaperSize.cs
- UpWmlMobileTextWriter.cs
- MappingModelBuildProvider.cs
- HttpApplication.cs
- RegexMatchCollection.cs
- streamingZipPartStream.cs
- DesignerObject.cs
- AttributeEmitter.cs
- ChooseAction.cs
- COAUTHINFO.cs
- SecureUICommand.cs
- CombinedGeometry.cs
- ProtocolsConfigurationEntry.cs
- XPathQueryGenerator.cs
- XmlSerializerFactory.cs
- FontStretches.cs
- PersistenceContext.cs
- ClientConfigurationSystem.cs
- OLEDB_Util.cs
- DesignerAttribute.cs
- FocusChangedEventArgs.cs
- WebDisplayNameAttribute.cs
- ModifierKeysConverter.cs
- Nodes.cs
- Symbol.cs
- GeometryHitTestParameters.cs
- MetaType.cs
- Encoding.cs
- CLSCompliantAttribute.cs
- TimeoutValidationAttribute.cs
- Geometry.cs
- WorkflowOwnershipException.cs
- FrameworkContentElement.cs
- SurrogateDataContract.cs
- ConstantExpression.cs
- DateTimeConverter.cs
- PerformanceCounterCategory.cs
- DependencyObject.cs
- PersonalizableTypeEntry.cs
- EventWaitHandle.cs