Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / RecommendedAsConfigurableAttribute.cs / 1 / RecommendedAsConfigurableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [Obsolete("Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.")] public class RecommendedAsConfigurableAttribute : Attribute { private bool recommendedAsConfigurable = false; ///Specifies that the property can be /// used as an application setting. ////// public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) { this.recommendedAsConfigurable = recommendedAsConfigurable; } ////// Initializes a new instance of /// the ///class. /// /// public bool RecommendedAsConfigurable { get { return recommendedAsConfigurable; } } ///Gets a value indicating whether the property this /// attribute is bound to can be used as an application setting. ////// public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false); ////// Specifies that a property cannot be used as an application setting. This /// ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true); ////// Specifies /// that a property can be used as an application setting. This ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Default = No; ////// Specifies the default value for the ///, which is . This field is /// read-only. /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RecommendedAsConfigurableAttribute other = obj as RecommendedAsConfigurableAttribute; return other != null && other.RecommendedAsConfigurable == recommendedAsConfigurable; } ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// public override bool IsDefaultAttribute() { return !recommendedAsConfigurable; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [Obsolete("Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.")] public class RecommendedAsConfigurableAttribute : Attribute { private bool recommendedAsConfigurable = false; ///Specifies that the property can be /// used as an application setting. ////// public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) { this.recommendedAsConfigurable = recommendedAsConfigurable; } ////// Initializes a new instance of /// the ///class. /// /// public bool RecommendedAsConfigurable { get { return recommendedAsConfigurable; } } ///Gets a value indicating whether the property this /// attribute is bound to can be used as an application setting. ////// public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false); ////// Specifies that a property cannot be used as an application setting. This /// ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true); ////// Specifies /// that a property can be used as an application setting. This ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Default = No; ////// Specifies the default value for the ///, which is . This field is /// read-only. /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RecommendedAsConfigurableAttribute other = obj as RecommendedAsConfigurableAttribute; return other != null && other.RecommendedAsConfigurable == recommendedAsConfigurable; } ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// public override bool IsDefaultAttribute() { return !recommendedAsConfigurable; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Viewport3DVisual.cs
- IERequestCache.cs
- FormatterConverter.cs
- ConnectionProviderAttribute.cs
- PropertySourceInfo.cs
- LinqDataSourceValidationException.cs
- PassportAuthentication.cs
- UpdatePanelControlTrigger.cs
- ProfileServiceManager.cs
- NumberFunctions.cs
- RangeValueProviderWrapper.cs
- XmlAnyElementAttributes.cs
- RowToParametersTransformer.cs
- PreviewPageInfo.cs
- Missing.cs
- PageCatalogPartDesigner.cs
- ClientConfigurationSystem.cs
- ModifiableIteratorCollection.cs
- PolyLineSegment.cs
- DefaultObjectSerializer.cs
- RawStylusSystemGestureInputReport.cs
- XsdValidatingReader.cs
- ExternalException.cs
- TemplateAction.cs
- XmlWrappingReader.cs
- CompilerTypeWithParams.cs
- TableLayoutColumnStyleCollection.cs
- ServiceHostFactory.cs
- CancellationHandlerDesigner.cs
- TypeConverterMarkupExtension.cs
- Brush.cs
- DefinitionBase.cs
- InplaceBitmapMetadataWriter.cs
- _SslState.cs
- SqlDependencyListener.cs
- QilBinary.cs
- ConsumerConnectionPointCollection.cs
- ToolStripOverflow.cs
- ScriptRegistrationManager.cs
- ACE.cs
- CodeDomSerializerException.cs
- ColorDialog.cs
- QueryPageSettingsEventArgs.cs
- XmlNullResolver.cs
- ValidationVisibilityAttribute.cs
- ScriptReferenceBase.cs
- Constraint.cs
- RSAPKCS1SignatureDeformatter.cs
- DiscoveryMessageSequenceGenerator.cs
- ExtensibleClassFactory.cs
- FileClassifier.cs
- KnownBoxes.cs
- NonClientArea.cs
- FixedSOMLineRanges.cs
- NonBatchDirectoryCompiler.cs
- MemberAccessException.cs
- TimeSpanValidator.cs
- OleAutBinder.cs
- XmlNodeChangedEventArgs.cs
- Codec.cs
- ResourceSet.cs
- ImageClickEventArgs.cs
- MailDefinition.cs
- ScriptBehaviorDescriptor.cs
- DataTemplateKey.cs
- XmlCharCheckingReader.cs
- DateTimeEditor.cs
- XamlSerializerUtil.cs
- DiffuseMaterial.cs
- FixedDocument.cs
- ColorConvertedBitmapExtension.cs
- SqlClientFactory.cs
- InputLangChangeEvent.cs
- GridViewActionList.cs
- DataGridViewCheckBoxCell.cs
- Types.cs
- While.cs
- BooleanKeyFrameCollection.cs
- VisualTransition.cs
- XComponentModel.cs
- PersistenceException.cs
- XPathAncestorIterator.cs
- COM2ComponentEditor.cs
- TouchesCapturedWithinProperty.cs
- LinkGrep.cs
- UserControl.cs
- DefinitionUpdate.cs
- Utilities.cs
- SpecialFolderEnumConverter.cs
- ScrollProviderWrapper.cs
- BindingValueChangedEventArgs.cs
- AssociationSetEnd.cs
- TypeResolver.cs
- XmlDownloadManager.cs
- PageRanges.cs
- ConfigurationManagerHelper.cs
- NameSpaceExtractor.cs
- HttpRuntimeSection.cs
- SectionVisual.cs
- DesignerVerbCollection.cs