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
- ToolBarPanel.cs
- MethodAccessException.cs
- Compiler.cs
- XomlSerializationHelpers.cs
- TransformValueSerializer.cs
- WorkflowApplicationEventArgs.cs
- TraceEventCache.cs
- MediaPlayerState.cs
- MessageQueuePermissionEntry.cs
- SafeHandles.cs
- TempFiles.cs
- HtmlControlDesigner.cs
- XmlCustomFormatter.cs
- ApplicationSecurityInfo.cs
- MailMessage.cs
- BitmapEffectInput.cs
- ContextQuery.cs
- InstalledVoice.cs
- Animatable.cs
- ComNativeDescriptor.cs
- AnnotationAdorner.cs
- PeerDuplexChannelListener.cs
- DiffuseMaterial.cs
- RecipientInfo.cs
- NavigationWindowAutomationPeer.cs
- FormsIdentity.cs
- DrawingAttributes.cs
- DeferredTextReference.cs
- PersonalizationStateInfoCollection.cs
- Function.cs
- NetworkInformationException.cs
- TargetParameterCountException.cs
- OleDbConnection.cs
- UserPersonalizationStateInfo.cs
- ContourSegment.cs
- XmlILIndex.cs
- LocalFileSettingsProvider.cs
- PageRanges.cs
- FullTextBreakpoint.cs
- FileDialogCustomPlacesCollection.cs
- RenderDataDrawingContext.cs
- SimpleHandlerFactory.cs
- transactioncontext.cs
- DataSourceViewSchemaConverter.cs
- CurrentTimeZone.cs
- XsltSettings.cs
- ScopeElementCollection.cs
- WCFModelStrings.Designer.cs
- TextEffectCollection.cs
- DictionaryKeyPropertyAttribute.cs
- EventSource.cs
- Point3D.cs
- Codec.cs
- CodeTryCatchFinallyStatement.cs
- BezierSegment.cs
- TransformConverter.cs
- GeneralTransform3D.cs
- CollectionViewGroupRoot.cs
- JapaneseLunisolarCalendar.cs
- FacetDescription.cs
- Maps.cs
- Util.cs
- PointAnimationClockResource.cs
- MonthCalendarDesigner.cs
- SQLDateTime.cs
- NetPipeSection.cs
- QueryConverter.cs
- PolyLineSegment.cs
- ApplicationInterop.cs
- ScriptManager.cs
- SymLanguageVendor.cs
- RegexStringValidator.cs
- AdRotator.cs
- SqlConnectionPoolGroupProviderInfo.cs
- BinaryObjectWriter.cs
- CodeIdentifiers.cs
- SelectedGridItemChangedEvent.cs
- ToolStripDropDownClosingEventArgs.cs
- XmlSchemaValidationException.cs
- InvokeBase.cs
- __FastResourceComparer.cs
- DataServiceRequestOfT.cs
- XslException.cs
- ImageSource.cs
- FontUnit.cs
- WindowsScroll.cs
- WebContext.cs
- VisualSerializer.cs
- AnnotationDocumentPaginator.cs
- CookielessHelper.cs
- CatalogZone.cs
- CompatibleComparer.cs
- Form.cs
- WebDescriptionAttribute.cs
- IImplicitResourceProvider.cs
- PrintControllerWithStatusDialog.cs
- ObjectParameter.cs
- cookiecollection.cs
- StrongNameIdentityPermission.cs
- StaticTextPointer.cs