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
- ZipIOFileItemStream.cs
- ExpressionPrinter.cs
- RoutedUICommand.cs
- MetaData.cs
- __Filters.cs
- Function.cs
- XamlSerializationHelper.cs
- IdleTimeoutMonitor.cs
- ProviderCollection.cs
- Drawing.cs
- FromReply.cs
- RedistVersionInfo.cs
- ToolStripSeparator.cs
- TerminatorSinks.cs
- CollectionBuilder.cs
- TextAction.cs
- TextParentUndoUnit.cs
- MediaPlayer.cs
- ItemMap.cs
- CompositeDispatchFormatter.cs
- KeyValuePair.cs
- Pen.cs
- SafeCoTaskMem.cs
- ElementNotEnabledException.cs
- TextBoxAutomationPeer.cs
- NetworkStream.cs
- ListControl.cs
- ClosureBinding.cs
- CodeAttributeArgument.cs
- CategoryAttribute.cs
- PropertyEmitterBase.cs
- DesigntimeLicenseContextSerializer.cs
- JobStaple.cs
- NavigatorInvalidBodyAccessException.cs
- TextLineBreak.cs
- GcSettings.cs
- SubtreeProcessor.cs
- BackStopAuthenticationModule.cs
- WorkflowServiceHostFactory.cs
- Inflater.cs
- SelectedDatesCollection.cs
- SelectQueryOperator.cs
- OutgoingWebRequestContext.cs
- IdentityNotMappedException.cs
- XmlSerializationGeneratedCode.cs
- SkewTransform.cs
- MessageSecurityTokenVersion.cs
- remotingproxy.cs
- CommandLibraryHelper.cs
- StreamGeometry.cs
- ControlPersister.cs
- StreamedWorkflowDefinitionContext.cs
- TreeView.cs
- ImageAnimator.cs
- PageAdapter.cs
- Point3DCollectionConverter.cs
- WizardPanelChangingEventArgs.cs
- DataGridViewLinkCell.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- baseaxisquery.cs
- mediaclock.cs
- ByteRangeDownloader.cs
- WizardPanel.cs
- Cursor.cs
- TemplateBindingExpressionConverter.cs
- CompiledQuery.cs
- ChannelTokenTypeConverter.cs
- DataSourceCollectionBase.cs
- Stack.cs
- __ConsoleStream.cs
- OleDbReferenceCollection.cs
- XmlSerializerNamespaces.cs
- SchemaInfo.cs
- ExpandSegmentCollection.cs
- PropertySet.cs
- MonitoringDescriptionAttribute.cs
- ReadOnlyDictionary.cs
- SecurityException.cs
- MimeMapping.cs
- ExpanderAutomationPeer.cs
- OpCodes.cs
- EntityDataSource.cs
- ProxyManager.cs
- JsonDataContract.cs
- DataGridSortCommandEventArgs.cs
- ClientConfigPaths.cs
- TypeForwardedToAttribute.cs
- DataGridBoolColumn.cs
- SymbolMethod.cs
- ConstructorNeedsTagAttribute.cs
- ComponentDispatcherThread.cs
- WorkflowServiceInstance.cs
- X509CertificateValidator.cs
- Monitor.cs
- BoundColumn.cs
- BooleanSwitch.cs
- ChannelServices.cs
- GPRECTF.cs
- ProxyBuilder.cs
- IxmlLineInfo.cs