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
- CredentialCache.cs
- ProcessHostMapPath.cs
- XmlTextWriter.cs
- DesignerTransaction.cs
- QuaternionAnimation.cs
- ConfigurationProperty.cs
- NamespaceDecl.cs
- METAHEADER.cs
- MetadataSource.cs
- LowerCaseStringConverter.cs
- Binding.cs
- SchemaImporter.cs
- AmbientEnvironment.cs
- SurrogateEncoder.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- StoreContentChangedEventArgs.cs
- ContractMethodInfo.cs
- NumberFormatter.cs
- SQLConvert.cs
- DataGridViewRowHeaderCell.cs
- ListViewAutomationPeer.cs
- XmlSchemaChoice.cs
- WebHttpBindingCollectionElement.cs
- FileSecurity.cs
- CellCreator.cs
- DesignerDataStoredProcedure.cs
- VirtualizedItemProviderWrapper.cs
- EventLogPermissionEntry.cs
- SafeReversePInvokeHandle.cs
- ThumbButtonInfo.cs
- MediaContext.cs
- RemoteWebConfigurationHostStream.cs
- PropertyValueChangedEvent.cs
- ReadOnlyHierarchicalDataSource.cs
- CompatibleIComparer.cs
- ReadOnlyDataSourceView.cs
- XmlStringTable.cs
- MethodImplAttribute.cs
- Transform3D.cs
- XmlSchema.cs
- LinkDescriptor.cs
- odbcmetadatacollectionnames.cs
- TimeManager.cs
- CurrentTimeZone.cs
- SeekStoryboard.cs
- MachineSettingsSection.cs
- EventLog.cs
- HighlightOverlayGlyph.cs
- SharedPerformanceCounter.cs
- PrePrepareMethodAttribute.cs
- OLEDB_Enum.cs
- TableAutomationPeer.cs
- SynchronizedReadOnlyCollection.cs
- BitArray.cs
- Helpers.cs
- SerializationEventsCache.cs
- InvalidateEvent.cs
- ParagraphResult.cs
- FontResourceCache.cs
- StringUtil.cs
- ClientScriptItemCollection.cs
- StatusBar.cs
- MaskedTextBoxDesigner.cs
- serverconfig.cs
- HttpCachePolicyWrapper.cs
- MsmqProcessProtocolHandler.cs
- XmlAttributeCollection.cs
- HtmlToClrEventProxy.cs
- TrustManagerPromptUI.cs
- RoleManagerSection.cs
- BlurBitmapEffect.cs
- JsonSerializer.cs
- DesignerDataSchemaClass.cs
- StyleCollection.cs
- StyleCollectionEditor.cs
- DataControlFieldHeaderCell.cs
- AutomationElementCollection.cs
- IPEndPointCollection.cs
- MembershipValidatePasswordEventArgs.cs
- HtmlInputControl.cs
- ProfileSettingsCollection.cs
- OracleCommandBuilder.cs
- SimpleRecyclingCache.cs
- contentDescriptor.cs
- RuntimeHelpers.cs
- BuilderPropertyEntry.cs
- RowBinding.cs
- TextTreeInsertElementUndoUnit.cs
- ApplyHostConfigurationBehavior.cs
- XmlAttribute.cs
- XmlToDatasetMap.cs
- _LoggingObject.cs
- UserNameSecurityTokenAuthenticator.cs
- NoResizeHandleGlyph.cs
- CounterSampleCalculator.cs
- AttributeProviderAttribute.cs
- CornerRadius.cs
- VisualStyleInformation.cs
- DelegateSerializationHolder.cs
- CodeBlockBuilder.cs