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
- BamlLocalizationDictionary.cs
- HandleValueEditor.cs
- TextTreeDeleteContentUndoUnit.cs
- ServerValidateEventArgs.cs
- ValidationErrorInfo.cs
- Point4DConverter.cs
- LongValidatorAttribute.cs
- TemplateEditingVerb.cs
- XmlSigningNodeWriter.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- LogPolicy.cs
- CultureInfo.cs
- HtmlControl.cs
- UncommonField.cs
- SqlClientFactory.cs
- ColumnPropertiesGroup.cs
- DbLambda.cs
- Ref.cs
- DataGrid.cs
- BrowserCapabilitiesCodeGenerator.cs
- ToolStripRenderer.cs
- PageCatalogPart.cs
- WebConfigurationManager.cs
- ControlType.cs
- _SafeNetHandles.cs
- RangeBase.cs
- QuaternionRotation3D.cs
- Decimal.cs
- CreateWorkflowOwnerCommand.cs
- WmpBitmapEncoder.cs
- CodeSubDirectoriesCollection.cs
- ConfigDefinitionUpdates.cs
- GridViewCommandEventArgs.cs
- ZoneIdentityPermission.cs
- WorkflowMessageEventHandler.cs
- DecoderFallbackWithFailureFlag.cs
- Propagator.ExtentPlaceholderCreator.cs
- MissingFieldException.cs
- HttpCachePolicyElement.cs
- InternalControlCollection.cs
- GridPattern.cs
- OleDbCommand.cs
- AssemblyNameEqualityComparer.cs
- ExpressionHelper.cs
- RegionIterator.cs
- RegexNode.cs
- TreeNode.cs
- isolationinterop.cs
- TableProvider.cs
- WebPartDescriptionCollection.cs
- BoundField.cs
- WebHttpBindingCollectionElement.cs
- SmtpClient.cs
- GenericsInstances.cs
- ToolBar.cs
- CompressStream.cs
- CompileXomlTask.cs
- RulePatternOps.cs
- FixedDSBuilder.cs
- StrongNameKeyPair.cs
- TimeZoneNotFoundException.cs
- DesignOnlyAttribute.cs
- Delay.cs
- ActivityExecutionContextCollection.cs
- DbConnectionPoolGroup.cs
- FactoryGenerator.cs
- HMAC.cs
- ConnectionManagementElement.cs
- _SSPISessionCache.cs
- Point3DCollectionConverter.cs
- ThrowHelper.cs
- DbProviderFactoriesConfigurationHandler.cs
- FunctionNode.cs
- Facet.cs
- StateMachineExecutionState.cs
- CharAnimationBase.cs
- DelegatingConfigHost.cs
- Model3DGroup.cs
- ConnectionStringsExpressionEditor.cs
- Point3DCollection.cs
- ScriptRegistrationManager.cs
- EntityDataSourceDesignerHelper.cs
- ToolStripButton.cs
- ContainerParagraph.cs
- QueryModel.cs
- ResourceProviderFactory.cs
- _HelperAsyncResults.cs
- CompiledIdentityConstraint.cs
- PerSessionInstanceContextProvider.cs
- SQLCharsStorage.cs
- DbParameterHelper.cs
- OletxTransactionManager.cs
- JobInputBins.cs
- PartitionResolver.cs
- CompareValidator.cs
- HtmlElementCollection.cs
- SHA256.cs
- SubMenuStyle.cs
- ProcessHostConfigUtils.cs
- ControlUtil.cs