Code:
/ DotNET / DotNET / 8.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
- StringCollection.cs
- ContextInformation.cs
- FocusTracker.cs
- TemplateField.cs
- CancelAsyncOperationRequest.cs
- SettingsPropertyValue.cs
- Utility.cs
- ObjectCloneHelper.cs
- TextBox.cs
- KeyPullup.cs
- ReadOnlyDictionary.cs
- SplitterPanel.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- XmlSchemaImporter.cs
- PenLineJoinValidation.cs
- CounterCreationData.cs
- ConfigXmlSignificantWhitespace.cs
- BuildProvidersCompiler.cs
- SendSecurityHeader.cs
- ConfigDefinitionUpdates.cs
- DataGridViewTextBoxColumn.cs
- RadioButtonRenderer.cs
- CharacterMetrics.cs
- DesignerObject.cs
- SymLanguageVendor.cs
- WebFaultClientMessageInspector.cs
- RouteCollection.cs
- HttpCapabilitiesSectionHandler.cs
- NodeLabelEditEvent.cs
- VisualStyleRenderer.cs
- UInt16Storage.cs
- RenderOptions.cs
- QEncodedStream.cs
- BufferedWebEventProvider.cs
- HandlerBase.cs
- XmlKeywords.cs
- SqlHelper.cs
- TextStore.cs
- LongPath.cs
- BitmapEffect.cs
- Input.cs
- DataControlFieldTypeEditor.cs
- Queue.cs
- Command.cs
- PnrpPermission.cs
- DataProtection.cs
- ListDictionaryInternal.cs
- XPathChildIterator.cs
- FormatterServices.cs
- DoubleCollection.cs
- DbConnectionInternal.cs
- COM2ColorConverter.cs
- FormsAuthentication.cs
- AccessControlList.cs
- PolicyUnit.cs
- UrlPropertyAttribute.cs
- dbenumerator.cs
- RowsCopiedEventArgs.cs
- TabControlCancelEvent.cs
- SecurityTokenValidationException.cs
- AbandonedMutexException.cs
- TextRange.cs
- ViewLoader.cs
- HttpListenerContext.cs
- MultiPropertyDescriptorGridEntry.cs
- UIElementIsland.cs
- ScriptBehaviorDescriptor.cs
- PreviewPrintController.cs
- MemberDescriptor.cs
- RadioButtonDesigner.cs
- RegexMatch.cs
- XdrBuilder.cs
- SqlInternalConnectionSmi.cs
- XmlReaderSettings.cs
- WebDisplayNameAttribute.cs
- HttpCookiesSection.cs
- XmlDataImplementation.cs
- ConnectionManagementSection.cs
- SystemIPInterfaceProperties.cs
- ClientSettingsProvider.cs
- Models.cs
- PeerNeighborManager.cs
- OdbcEnvironment.cs
- Freezable.cs
- DataGridDesigner.cs
- DirectionalLight.cs
- ActivityContext.cs
- SiteMapHierarchicalDataSourceView.cs
- WebServiceEnumData.cs
- ZipFileInfoCollection.cs
- StopStoryboard.cs
- WorkflowTraceTransfer.cs
- Utils.cs
- TrackingWorkflowEventArgs.cs
- XmlSchemaAttribute.cs
- PageClientProxyGenerator.cs
- PageAsyncTask.cs
- CorrelationToken.cs
- ProviderMetadataCachedInformation.cs
- RuntimeResourceSet.cs