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
- PageRequestManager.cs
- XamlDesignerSerializationManager.cs
- WindowsSspiNegotiation.cs
- FlagsAttribute.cs
- DbDataSourceEnumerator.cs
- TextTreeRootTextBlock.cs
- DropTarget.cs
- StrokeCollection.cs
- WmfPlaceableFileHeader.cs
- DerivedKeySecurityTokenStub.cs
- EnterpriseServicesHelper.cs
- Marshal.cs
- ExpressionPrinter.cs
- DoubleCollectionValueSerializer.cs
- Rotation3DKeyFrameCollection.cs
- ReflectPropertyDescriptor.cs
- ContextMarshalException.cs
- TextServicesProperty.cs
- ObjectItemLoadingSessionData.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CollectionConverter.cs
- CacheForPrimitiveTypes.cs
- InputScopeManager.cs
- smtppermission.cs
- cookieexception.cs
- ServiceManagerHandle.cs
- ClassData.cs
- WebPartEditVerb.cs
- UmAlQuraCalendar.cs
- BufferedGraphicsManager.cs
- FontStyle.cs
- WpfSharedBamlSchemaContext.cs
- BaseParagraph.cs
- CodeAttributeDeclaration.cs
- MediaContext.cs
- ViewManager.cs
- Code.cs
- Calendar.cs
- NativeCppClassAttribute.cs
- FileSystemEventArgs.cs
- _SSPISessionCache.cs
- InfiniteIntConverter.cs
- MediaElement.cs
- CacheOutputQuery.cs
- CommonServiceBehaviorElement.cs
- ProviderConnectionPoint.cs
- FastEncoderStatics.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WsdlImporterElementCollection.cs
- XmlSignificantWhitespace.cs
- PaintEvent.cs
- ExecutionEngineException.cs
- TreeViewBindingsEditorForm.cs
- XmlQueryType.cs
- SimpleMailWebEventProvider.cs
- Crypto.cs
- FamilyMap.cs
- IpcChannelHelper.cs
- MenuStrip.cs
- ChildDocumentBlock.cs
- EventEntry.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- LinqDataSourceDeleteEventArgs.cs
- Tag.cs
- TextWriterEngine.cs
- NotCondition.cs
- AliasExpr.cs
- TypeConverterHelper.cs
- GridView.cs
- SafeHandles.cs
- AddValidationError.cs
- Activator.cs
- Error.cs
- ManagementOptions.cs
- XmlBinaryReader.cs
- ProviderUtil.cs
- XmlEventCache.cs
- SamlAttribute.cs
- PathData.cs
- TrailingSpaceComparer.cs
- SoapSchemaMember.cs
- CompiledQuery.cs
- XmlSchemaObjectCollection.cs
- FileAuthorizationModule.cs
- PersistencePipeline.cs
- RequestCacheManager.cs
- SqlXml.cs
- HtmlGenericControl.cs
- SqlNotificationEventArgs.cs
- Trustee.cs
- AnnotationResource.cs
- XmlSchemaImporter.cs
- XMLUtil.cs
- WebExceptionStatus.cs
- ObjectNavigationPropertyMapping.cs
- LoginName.cs
- XmlSiteMapProvider.cs
- DragStartedEventArgs.cs
- SimpleMailWebEventProvider.cs
- VerificationAttribute.cs