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
- UnhandledExceptionEventArgs.cs
- PackageRelationship.cs
- Button.cs
- Context.cs
- OutputCacheModule.cs
- SessionSwitchEventArgs.cs
- WindowsEditBox.cs
- ExpressionConverter.cs
- ReadWriteSpinLock.cs
- invalidudtexception.cs
- XmlDomTextWriter.cs
- WS2007HttpBindingCollectionElement.cs
- RequestStatusBarUpdateEventArgs.cs
- ExtensionQuery.cs
- RegistrationServices.cs
- DataBindingList.cs
- ObjectItemCollection.cs
- Socket.cs
- ValueQuery.cs
- ProxyGenerationError.cs
- DefaultPropertyAttribute.cs
- BamlTreeUpdater.cs
- SystemResourceHost.cs
- XmlValidatingReader.cs
- IPHostEntry.cs
- DBSqlParserColumn.cs
- MetadataArtifactLoaderFile.cs
- WindowsGraphics.cs
- UrlPropertyAttribute.cs
- DuplicateDetector.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- InlineCollection.cs
- DeviceContext.cs
- XmlIgnoreAttribute.cs
- ArgumentsParser.cs
- CircleEase.cs
- HtmlTableRow.cs
- ToolTipAutomationPeer.cs
- AssertHelper.cs
- SystemParameters.cs
- FormatSettings.cs
- CancellableEnumerable.cs
- DisplayNameAttribute.cs
- CatalogPart.cs
- DynamicMethod.cs
- SqlLiftWhereClauses.cs
- SoapElementAttribute.cs
- MoveSizeWinEventHandler.cs
- PackUriHelper.cs
- HtmlToClrEventProxy.cs
- SystemUdpStatistics.cs
- Sql8ConformanceChecker.cs
- RenderingEventArgs.cs
- TextServicesPropertyRanges.cs
- EventDescriptor.cs
- StringResourceManager.cs
- ObjectConverter.cs
- OleDbStruct.cs
- IntSecurity.cs
- FormsAuthenticationUserCollection.cs
- XmlEntity.cs
- WebBrowserPermission.cs
- ObjectStateManagerMetadata.cs
- ButtonRenderer.cs
- PartialCachingAttribute.cs
- TokenBasedSetEnumerator.cs
- ArrangedElementCollection.cs
- HostedController.cs
- EntityDataSourceWrapperCollection.cs
- ValidatedControlConverter.cs
- InputLanguageEventArgs.cs
- SystemIPInterfaceProperties.cs
- AspNetHostingPermission.cs
- AnnotationService.cs
- PerformanceCounterManager.cs
- DetailsViewInsertEventArgs.cs
- UdpConstants.cs
- WindowVisualStateTracker.cs
- SubMenuStyle.cs
- LedgerEntryCollection.cs
- QueryCacheKey.cs
- CustomBindingElement.cs
- SpeakInfo.cs
- KoreanCalendar.cs
- RoutedEventValueSerializer.cs
- UpdateException.cs
- CompilationUnit.cs
- VisualCollection.cs
- AssemblyCacheEntry.cs
- CompiledQuery.cs
- LocalizabilityAttribute.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ListViewSelectEventArgs.cs
- RenderTargetBitmap.cs
- MethodRental.cs
- CellQuery.cs
- GPRECT.cs
- SmiMetaData.cs
- TemplateBindingExpression.cs
- GrammarBuilderRuleRef.cs