Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- MethodBody.cs
- _NetRes.cs
- Delay.cs
- CodeValidator.cs
- CharKeyFrameCollection.cs
- Misc.cs
- DrawingContextFlattener.cs
- OrderablePartitioner.cs
- HttpWebRequestElement.cs
- WindowsGraphics.cs
- List.cs
- StandardMenuStripVerb.cs
- FileChangesMonitor.cs
- DistributedTransactionPermission.cs
- ComboBoxAutomationPeer.cs
- Canvas.cs
- CheckPair.cs
- DbSource.cs
- WindowsListViewGroupSubsetLink.cs
- PnrpPermission.cs
- RuntimeConfigLKG.cs
- GraphicsContext.cs
- TextPointerBase.cs
- FixedElement.cs
- HtmlEncodedRawTextWriter.cs
- BlobPersonalizationState.cs
- FillBehavior.cs
- DataGridHelper.cs
- AlternationConverter.cs
- DataRelationPropertyDescriptor.cs
- EntityTypeBase.cs
- ErrorLog.cs
- XmlUtil.cs
- SchemaSetCompiler.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Repeater.cs
- DataSourceXmlSerializer.cs
- GroupStyle.cs
- InternalEnumValidatorAttribute.cs
- SqlTypesSchemaImporter.cs
- CacheOutputQuery.cs
- StylusShape.cs
- ApplyImportsAction.cs
- MultiSelectRootGridEntry.cs
- XamlHostingSection.cs
- GraphicsContext.cs
- InvalidComObjectException.cs
- PasswordBox.cs
- ManipulationDeltaEventArgs.cs
- NotFiniteNumberException.cs
- WebBrowserDesigner.cs
- AppDomainProtocolHandler.cs
- XmlAttributeCollection.cs
- CommonProperties.cs
- UserMapPath.cs
- RuntimeArgumentHandle.cs
- SigningCredentials.cs
- XmlHelper.cs
- SpoolingTask.cs
- Effect.cs
- TransactionWaitAsyncResult.cs
- SpecialFolderEnumConverter.cs
- Parser.cs
- GetLedgerRequest.cs
- FixedHyperLink.cs
- ProcessInfo.cs
- SqlNotificationEventArgs.cs
- TextFragmentEngine.cs
- SiteMapNodeItemEventArgs.cs
- PackageRelationshipCollection.cs
- SettingsBindableAttribute.cs
- TemplateControl.cs
- LoadedEvent.cs
- listitem.cs
- DataGridAutoFormat.cs
- WebSysDefaultValueAttribute.cs
- RelationalExpressions.cs
- ProfileInfo.cs
- StorageEntitySetMapping.cs
- CryptoConfig.cs
- GridItemCollection.cs
- HtmlToClrEventProxy.cs
- NetTcpBindingElement.cs
- XPathDocumentIterator.cs
- LingerOption.cs
- BooleanStorage.cs
- ExitEventArgs.cs
- ComplexBindingPropertiesAttribute.cs
- CodeCommentStatement.cs
- recordstate.cs
- RadioButtonFlatAdapter.cs
- XmlAnyElementAttribute.cs
- ColorAnimationBase.cs
- GenericTextProperties.cs
- Grammar.cs
- SmtpFailedRecipientsException.cs
- x509utils.cs
- DtdParser.cs
- PerformanceCounterPermission.cs
- TimeEnumHelper.cs