Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509Certificate2.cs
- OptimizerPatterns.cs
- BinaryOperationBinder.cs
- AttachedPropertiesService.cs
- FloatUtil.cs
- ImpersonationContext.cs
- Validator.cs
- TimeSpanStorage.cs
- DbReferenceCollection.cs
- OleDbWrapper.cs
- DataGridAddNewRow.cs
- DataBoundControl.cs
- Cursors.cs
- WsdlBuildProvider.cs
- ResourceKey.cs
- odbcmetadatacolumnnames.cs
- EditorZoneDesigner.cs
- DummyDataSource.cs
- StandardToolWindows.cs
- RenderCapability.cs
- ParameterModifier.cs
- M3DUtil.cs
- UseLicense.cs
- InputLanguageCollection.cs
- MgmtResManager.cs
- VectorCollectionValueSerializer.cs
- QueryContinueDragEventArgs.cs
- Formatter.cs
- OleStrCAMarshaler.cs
- TCPListener.cs
- XPathNavigatorKeyComparer.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- AdPostCacheSubstitution.cs
- WebPartVerbsEventArgs.cs
- TraceRecord.cs
- AssertSection.cs
- SamlAudienceRestrictionCondition.cs
- ListBindableAttribute.cs
- KnownTypesHelper.cs
- SqlConnectionManager.cs
- ListBox.cs
- ReflectTypeDescriptionProvider.cs
- NavigationPropertyEmitter.cs
- GeneratedContractType.cs
- DurableInstanceContextProvider.cs
- HitTestParameters3D.cs
- SortedList.cs
- EntityDataSourceValidationException.cs
- AnimationTimeline.cs
- EmptyStringExpandableObjectConverter.cs
- Typeface.cs
- ApplicationException.cs
- IncrementalReadDecoders.cs
- HttpPostedFileBase.cs
- ElementHost.cs
- LabelInfo.cs
- Command.cs
- ErrorHandlerModule.cs
- DrawingContext.cs
- FamilyMapCollection.cs
- InputProcessorProfiles.cs
- RetrieveVirtualItemEventArgs.cs
- Point4DValueSerializer.cs
- Content.cs
- SafeProcessHandle.cs
- OdbcDataReader.cs
- CompoundFileDeflateTransform.cs
- SchemaInfo.cs
- QilPatternVisitor.cs
- PermissionListSet.cs
- ellipse.cs
- ContainerUtilities.cs
- ArraySubsetEnumerator.cs
- ListBindableAttribute.cs
- XPathPatternParser.cs
- HostingPreferredMapPath.cs
- RawAppCommandInputReport.cs
- Point.cs
- SystemFonts.cs
- CodeLinePragma.cs
- MemoryStream.cs
- TemplateXamlParser.cs
- EnvironmentPermission.cs
- ToolStripHighContrastRenderer.cs
- QuaternionValueSerializer.cs
- ScriptingWebServicesSectionGroup.cs
- XmlEventCache.cs
- EraserBehavior.cs
- MemberNameValidator.cs
- StateChangeEvent.cs
- ListControlConvertEventArgs.cs
- CounterSample.cs
- PageAdapter.cs
- OracleSqlParser.cs
- ExtendedPropertyCollection.cs
- XamlRtfConverter.cs
- PlatformCulture.cs
- CodeTypeMember.cs
- EventBuilder.cs
- KeyFrames.cs