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
- ToolBarPanel.cs
- webeventbuffer.cs
- WebServiceErrorEvent.cs
- TreeSet.cs
- Journal.cs
- Repeater.cs
- processwaithandle.cs
- EditorPartChrome.cs
- OpCellTreeNode.cs
- MsmqException.cs
- SymmetricAlgorithm.cs
- FlowSwitchDesigner.xaml.cs
- BasicHttpBindingCollectionElement.cs
- PointCollectionConverter.cs
- CallbackValidator.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- VectorCollectionValueSerializer.cs
- CircleHotSpot.cs
- BasicDesignerLoader.cs
- SchemaHelper.cs
- UnknownBitmapDecoder.cs
- Stroke2.cs
- FilteredAttributeCollection.cs
- UrlRoutingModule.cs
- WebHeaderCollection.cs
- CryptoKeySecurity.cs
- Aes.cs
- InvalidProgramException.cs
- ScriptResourceAttribute.cs
- FileChangeNotifier.cs
- _LazyAsyncResult.cs
- RegexReplacement.cs
- KeyEvent.cs
- AsyncParams.cs
- Instrumentation.cs
- ModelService.cs
- XmlDocument.cs
- WebPartDescriptionCollection.cs
- XmlQuerySequence.cs
- JoinQueryOperator.cs
- WebBrowserBase.cs
- ListViewGroup.cs
- EntityProviderServices.cs
- HtmlForm.cs
- Triplet.cs
- AnnotationService.cs
- VBCodeProvider.cs
- ObjectViewEntityCollectionData.cs
- UseAttributeSetsAction.cs
- ArgumentOutOfRangeException.cs
- ImplicitInputBrush.cs
- FileVersion.cs
- _ListenerAsyncResult.cs
- StreamUpgradeInitiator.cs
- MessageDispatch.cs
- StandardBindingCollectionElement.cs
- MsmqOutputSessionChannel.cs
- WindowsMenu.cs
- SQLRoleProvider.cs
- SessionStateModule.cs
- RecognitionEventArgs.cs
- HighlightComponent.cs
- ColumnProvider.cs
- AnnotationStore.cs
- SchemaInfo.cs
- mansign.cs
- HtmlGenericControl.cs
- DnsCache.cs
- Roles.cs
- CorePropertiesFilter.cs
- FlowDocumentReaderAutomationPeer.cs
- GuidelineSet.cs
- BuildProviderUtils.cs
- CodeComment.cs
- AssemblyUtil.cs
- StringUtil.cs
- Style.cs
- NameSpaceEvent.cs
- XpsManager.cs
- RelationshipEndMember.cs
- BinaryMethodMessage.cs
- MatrixTransform3D.cs
- serverconfig.cs
- AstTree.cs
- DesignBindingEditor.cs
- MailMessage.cs
- Matrix.cs
- DataError.cs
- HtmlElementErrorEventArgs.cs
- DefaultProxySection.cs
- MessageDroppedTraceRecord.cs
- XmlDictionaryString.cs
- RedirectionProxy.cs
- PtsHelper.cs
- FormViewUpdateEventArgs.cs
- ClosableStream.cs
- CharacterShapingProperties.cs
- HttpCookiesSection.cs
- EntityDataSourceDataSelection.cs
- ReservationNotFoundException.cs