Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReferentialConstraint.cs
- RuntimeHandles.cs
- DependencyPropertyHelper.cs
- RecognizerInfo.cs
- TypeElement.cs
- ScriptManagerProxy.cs
- AnimationException.cs
- TypeUsage.cs
- StubHelpers.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DockPanel.cs
- CustomError.cs
- XmlAnyAttributeAttribute.cs
- VectorCollectionConverter.cs
- FixedSOMPageElement.cs
- AggregatePushdown.cs
- XmlSerializerVersionAttribute.cs
- HatchBrush.cs
- EDesignUtil.cs
- WinInetCache.cs
- SR.cs
- UrlPropertyAttribute.cs
- StringReader.cs
- FontNamesConverter.cs
- PropertyGroupDescription.cs
- SQLDouble.cs
- Context.cs
- DecimalAnimationBase.cs
- ToolboxDataAttribute.cs
- HelpKeywordAttribute.cs
- XPathItem.cs
- TextWriterEngine.cs
- AnnotationResource.cs
- TextElement.cs
- Bitmap.cs
- DataViewSetting.cs
- TreeWalker.cs
- StrokeFIndices.cs
- CompressEmulationStream.cs
- ThreadExceptionDialog.cs
- ParameterToken.cs
- Typeface.cs
- DependencyPropertyConverter.cs
- PageThemeBuildProvider.cs
- ParentUndoUnit.cs
- StringSource.cs
- ManipulationDeltaEventArgs.cs
- RadialGradientBrush.cs
- EdmProperty.cs
- Grid.cs
- ObjectDataSourceDisposingEventArgs.cs
- SqlInternalConnectionSmi.cs
- StylusPointPropertyId.cs
- InputLangChangeRequestEvent.cs
- CompressStream.cs
- ExpandedWrapper.cs
- listitem.cs
- ResourceReferenceExpression.cs
- CopyAttributesAction.cs
- DataRecordInternal.cs
- Condition.cs
- ValidationError.cs
- regiisutil.cs
- ExtendedProtectionPolicyElement.cs
- ParameterCollection.cs
- FontFaceLayoutInfo.cs
- ColorTranslator.cs
- ScaleTransform3D.cs
- Int64Animation.cs
- ResourcesGenerator.cs
- OleStrCAMarshaler.cs
- DataException.cs
- RenderData.cs
- MatrixCamera.cs
- DataGridViewButtonCell.cs
- SequenceDesigner.cs
- ITextView.cs
- XmlSchemaExternal.cs
- CapabilitiesUse.cs
- Point3D.cs
- ContentPresenter.cs
- RequestCache.cs
- TreeViewCancelEvent.cs
- CollectionTypeElement.cs
- MachineKeySection.cs
- XmlElementAttribute.cs
- Container.cs
- StickyNoteAnnotations.cs
- VerticalConnector.xaml.cs
- CmsUtils.cs
- ObjectDataSourceMethodEventArgs.cs
- SamlAction.cs
- ProtocolsConfigurationEntry.cs
- LessThanOrEqual.cs
- NameTable.cs
- ToolboxDataAttribute.cs
- CustomCategoryAttribute.cs
- ThreadExceptionEvent.cs
- EventArgs.cs
- DocumentSignatureManager.cs