Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ConnectionManagementElement.cs
- HitTestDrawingContextWalker.cs
- DataBoundLiteralControl.cs
- FormCollection.cs
- PopupControlService.cs
- QueryContinueDragEventArgs.cs
- TreeView.cs
- Line.cs
- FusionWrap.cs
- ReferenceConverter.cs
- UnsafeNativeMethods.cs
- Material.cs
- WebResponse.cs
- RecipientInfo.cs
- FixedSOMLineCollection.cs
- SequentialWorkflowHeaderFooter.cs
- Hashtable.cs
- FileDialog_Vista_Interop.cs
- BrowsableAttribute.cs
- TextTreeFixupNode.cs
- ValidatorCompatibilityHelper.cs
- ImpersonationContext.cs
- _CacheStreams.cs
- ConfigXmlComment.cs
- BackEase.cs
- ContextMenuAutomationPeer.cs
- XamlParser.cs
- NativeMethods.cs
- MemoryStream.cs
- Attribute.cs
- DockPattern.cs
- ResXBuildProvider.cs
- IgnorePropertiesAttribute.cs
- StructuredType.cs
- BitmapInitialize.cs
- FillErrorEventArgs.cs
- AssemblyInfo.cs
- Enum.cs
- UniformGrid.cs
- RulePatternOps.cs
- BamlBinaryReader.cs
- FrameAutomationPeer.cs
- ConnectionsZone.cs
- WebConfigurationFileMap.cs
- BufferedResponseStream.cs
- MsmqDecodeHelper.cs
- dbdatarecord.cs
- DragAssistanceManager.cs
- SplineQuaternionKeyFrame.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DeclarativeConditionsCollection.cs
- InheritanceContextChangedEventManager.cs
- safelinkcollection.cs
- Mutex.cs
- FieldNameLookup.cs
- XmlSchemaGroupRef.cs
- FixUpCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Roles.cs
- Simplifier.cs
- CursorConverter.cs
- AdornerHitTestResult.cs
- ListSourceHelper.cs
- SeekableReadStream.cs
- Contracts.cs
- SiteMapNode.cs
- UICuesEvent.cs
- _StreamFramer.cs
- ConsumerConnectionPoint.cs
- ControlPager.cs
- XmlSortKey.cs
- XmlFormatExtensionPointAttribute.cs
- TextFindEngine.cs
- ValueType.cs
- StickyNoteContentControl.cs
- WebBrowserDesigner.cs
- ToolStripDropDownItem.cs
- IPHostEntry.cs
- BindingCollection.cs
- AppearanceEditorPart.cs
- ThousandthOfEmRealDoubles.cs
- SqlDependencyUtils.cs
- LinkLabel.cs
- GridViewDeletedEventArgs.cs
- TraceSection.cs
- GridErrorDlg.cs
- ShaperBuffers.cs
- XmlSchemaInfo.cs
- DirtyTextRange.cs
- AdornedElementPlaceholder.cs
- CacheHelper.cs
- WebPartRestoreVerb.cs
- ICspAsymmetricAlgorithm.cs
- RedistVersionInfo.cs
- DrawingState.cs
- SparseMemoryStream.cs
- DynamicResourceExtension.cs
- FindCriteriaElement.cs
- BoolExpression.cs
- XslUrlEditor.cs