Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RecommendedAsConfigurableAttribute.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefaultBinder.cs
- Wizard.cs
- RectangleHotSpot.cs
- FileSecurity.cs
- CompiledAction.cs
- ThrowHelper.cs
- ObjectDataSourceDisposingEventArgs.cs
- EntityDataSource.cs
- Canvas.cs
- ContentPresenter.cs
- PropertyGridCommands.cs
- UriTemplateVariableQueryValue.cs
- HwndPanningFeedback.cs
- FontUnitConverter.cs
- PerformanceCounterCategory.cs
- UInt16.cs
- AffineTransform3D.cs
- ConstrainedDataObject.cs
- PersonalizationStateInfoCollection.cs
- StreamWriter.cs
- BaseCollection.cs
- ColorConverter.cs
- XPathNodePointer.cs
- URL.cs
- DrawingContextWalker.cs
- SubMenuStyleCollection.cs
- FixedBufferAttribute.cs
- WindowsListViewItem.cs
- StrokeNodeEnumerator.cs
- AttributeUsageAttribute.cs
- SignatureResourcePool.cs
- DependencyPropertyDescriptor.cs
- FileDetails.cs
- DecimalAnimationUsingKeyFrames.cs
- CellParagraph.cs
- Accessible.cs
- ConfigurationStrings.cs
- ResourcePool.cs
- ApplicationCommands.cs
- ExpressionParser.cs
- XmlMemberMapping.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CharEnumerator.cs
- OutputCacheSettingsSection.cs
- ModelVisual3D.cs
- ConstNode.cs
- FtpCachePolicyElement.cs
- StorageAssociationSetMapping.cs
- QueryStringParameter.cs
- DropDownList.cs
- WebScriptEnablingElement.cs
- SessionStateModule.cs
- EntityCommandCompilationException.cs
- XmlNodeChangedEventArgs.cs
- PointConverter.cs
- ResXBuildProvider.cs
- ResourceDictionary.cs
- ReliabilityContractAttribute.cs
- XmlArrayItemAttributes.cs
- TextDecorationCollection.cs
- VisualBasicDesignerHelper.cs
- XhtmlBasicTextBoxAdapter.cs
- FieldToken.cs
- DockPattern.cs
- CrossSiteScriptingValidation.cs
- SourceChangedEventArgs.cs
- CapiSymmetricAlgorithm.cs
- NativeMethods.cs
- Update.cs
- NamedPipeProcessProtocolHandler.cs
- TreeWalker.cs
- SerializationSectionGroup.cs
- COM2EnumConverter.cs
- ListViewItem.cs
- DescriptionAttribute.cs
- RawTextInputReport.cs
- UTF32Encoding.cs
- AutoGeneratedFieldProperties.cs
- DesignerOptionService.cs
- WebPartMenuStyle.cs
- SqlUtils.cs
- TextCompositionManager.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- ConfigXmlCDataSection.cs
- UnsafeNativeMethods.cs
- DesignerResources.cs
- DataPagerFieldCollection.cs
- _SpnDictionary.cs
- ListenerElementsCollection.cs
- MetafileHeaderWmf.cs
- SecurityTokenProvider.cs
- ReferencedAssembly.cs
- WindowsScroll.cs
- CodeDomDecompiler.cs
- Privilege.cs
- StorageBasedPackageProperties.cs
- ClientData.cs
- PrivateFontCollection.cs
- WebPartPersonalization.cs
- EventEntry.cs