Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HostProtectionException.cs
- DefaultBinder.cs
- StdValidatorsAndConverters.cs
- DropDownList.cs
- StopStoryboard.cs
- Tokenizer.cs
- AsyncPostBackTrigger.cs
- TrustManagerPromptUI.cs
- XmlSchemaSimpleTypeRestriction.cs
- DesignerUtility.cs
- ScriptHandlerFactory.cs
- SelectedDatesCollection.cs
- InvokeMethod.cs
- SafeLocalMemHandle.cs
- Padding.cs
- ConfigurationLocation.cs
- RegexGroup.cs
- UIAgentRequest.cs
- HuffCodec.cs
- EntityKey.cs
- ScopelessEnumAttribute.cs
- MenuRendererStandards.cs
- DbQueryCommandTree.cs
- TypeResolver.cs
- MatrixStack.cs
- StringStorage.cs
- RowType.cs
- SqlDataSourceEnumerator.cs
- DbXmlEnabledProviderManifest.cs
- XmlSchemaSubstitutionGroup.cs
- XomlSerializationHelpers.cs
- ProfilePropertyNameValidator.cs
- PointIndependentAnimationStorage.cs
- TraceContextEventArgs.cs
- ClientConvert.cs
- VectorValueSerializer.cs
- QueryExpr.cs
- SimpleType.cs
- HttpVersion.cs
- SqlMultiplexer.cs
- Vector3DCollectionValueSerializer.cs
- QuotedPairReader.cs
- PrintDialogException.cs
- DiagnosticTraceSource.cs
- Triangle.cs
- DynamicHyperLink.cs
- XmlSchemaParticle.cs
- DataServiceQueryException.cs
- GridViewUpdatedEventArgs.cs
- RpcResponse.cs
- TextPattern.cs
- VirtualDirectoryMapping.cs
- SoapWriter.cs
- SQLBytesStorage.cs
- EditorZoneBase.cs
- FixUp.cs
- ImageIndexConverter.cs
- ValidationSummary.cs
- Matrix3DStack.cs
- RequestCacheValidator.cs
- FormsAuthentication.cs
- DataGridViewUtilities.cs
- GC.cs
- ObjectDataSourceChooseTypePanel.cs
- MemberAccessException.cs
- ServiceModelConfiguration.cs
- SqlConnection.cs
- DelegateSerializationHolder.cs
- HttpRawResponse.cs
- HttpRequestWrapper.cs
- InstanceDescriptor.cs
- RequiredFieldValidator.cs
- SmtpDigestAuthenticationModule.cs
- LicenseManager.cs
- HostingPreferredMapPath.cs
- RectConverter.cs
- SqlDataSourceCustomCommandPanel.cs
- Label.cs
- OdbcException.cs
- WebProxyScriptElement.cs
- PageSetupDialog.cs
- UnlockInstanceCommand.cs
- MimePart.cs
- Column.cs
- TypeHelpers.cs
- Config.cs
- InternalDispatchObject.cs
- SqlUtil.cs
- CodeTypeReference.cs
- ToolBarPanel.cs
- SequentialWorkflowHeaderFooter.cs
- ListViewTableCell.cs
- FrameworkObject.cs
- DocumentPropertiesDialog.cs
- ContainerParagraph.cs
- RepeatBehavior.cs
- RtfToken.cs
- coordinator.cs
- GroupDescription.cs
- dataprotectionpermission.cs