Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- JsonSerializer.cs
- DataMemberListEditor.cs
- FontUnit.cs
- Automation.cs
- LocationSectionRecord.cs
- SafeHGlobalHandleCritical.cs
- FixedFindEngine.cs
- GridViewColumnCollection.cs
- ActivityXRefPropertyEditor.cs
- LayoutDump.cs
- HttpResponseHeader.cs
- RuntimeArgumentHandle.cs
- MultiBindingExpression.cs
- SingleQueryOperator.cs
- ParameterCollection.cs
- BindingList.cs
- ModelTreeManager.cs
- BackEase.cs
- EventProxy.cs
- MergeFilterQuery.cs
- assemblycache.cs
- HttpRequest.cs
- ExtensionQuery.cs
- SHA256Cng.cs
- StructuredTypeInfo.cs
- AutoScrollExpandMessageFilter.cs
- XmlDesignerDataSourceView.cs
- GestureRecognitionResult.cs
- AppSettingsReader.cs
- DurableErrorHandler.cs
- SamlDelegatingWriter.cs
- ConstructorBuilder.cs
- CacheVirtualItemsEvent.cs
- SecurityKeyIdentifierClause.cs
- CompilerScopeManager.cs
- InternalBufferManager.cs
- HandlerWithFactory.cs
- StretchValidation.cs
- ExtensionFile.cs
- List.cs
- SyntaxCheck.cs
- DocumentViewer.cs
- LayoutManager.cs
- PassportAuthenticationModule.cs
- BamlResourceDeserializer.cs
- XamlWriter.cs
- ExceptionRoutedEventArgs.cs
- SharedUtils.cs
- Vector3D.cs
- ChannelDispatcher.cs
- HttpProfileGroupBase.cs
- EntitySetRetriever.cs
- Group.cs
- X509Certificate.cs
- EventEntry.cs
- MessagePropertyAttribute.cs
- EntityDataSourceContextDisposingEventArgs.cs
- BindingList.cs
- MatchingStyle.cs
- DataFormats.cs
- XmlRootAttribute.cs
- ScriptingScriptResourceHandlerSection.cs
- COM2IDispatchConverter.cs
- ChannelManagerBase.cs
- IImplicitResourceProvider.cs
- AnnouncementEndpoint.cs
- BinaryObjectInfo.cs
- DocumentViewerBaseAutomationPeer.cs
- ExcCanonicalXml.cs
- PermissionSetTriple.cs
- OdbcTransaction.cs
- PngBitmapDecoder.cs
- DataServiceQueryOfT.cs
- TextTreeNode.cs
- NativeMethods.cs
- VerificationException.cs
- SubstitutionResponseElement.cs
- DataGrid.cs
- _IPv6Address.cs
- SmiEventSink.cs
- PassportAuthentication.cs
- FigureParagraph.cs
- Cursors.cs
- Native.cs
- KeyedCollection.cs
- ipaddressinformationcollection.cs
- WebOperationContext.cs
- GridViewUpdateEventArgs.cs
- Win32Native.cs
- SystemMulticastIPAddressInformation.cs
- XmlFormatExtensionPrefixAttribute.cs
- ForwardPositionQuery.cs
- DiagnosticStrings.cs
- Duration.cs
- TemplateContainer.cs
- ConfigViewGenerator.cs
- FullTextBreakpoint.cs
- AutomationIdentifier.cs
- ColumnReorderedEventArgs.cs
- MasterPageParser.cs