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
- CounterSample.cs
- ParameterCollection.cs
- BindingSource.cs
- PrivilegeNotHeldException.cs
- BinaryCommonClasses.cs
- TogglePatternIdentifiers.cs
- DataColumnChangeEvent.cs
- TabControl.cs
- ProgressBar.cs
- StyleCollectionEditor.cs
- HexParser.cs
- AttributeEmitter.cs
- BulletedList.cs
- DataSetUtil.cs
- ProcessHostMapPath.cs
- SecurityTokenSpecification.cs
- NotifyInputEventArgs.cs
- WindowsListViewItemStartMenu.cs
- StdValidatorsAndConverters.cs
- _Connection.cs
- HostedHttpTransportManager.cs
- ClonableStack.cs
- ExtensionFile.cs
- ShaperBuffers.cs
- IgnoreSectionHandler.cs
- LinqDataSourceContextData.cs
- UpdatePanelTrigger.cs
- TerminateSequence.cs
- _SslStream.cs
- BaseDataList.cs
- securestring.cs
- PeerTransportCredentialType.cs
- QuaternionRotation3D.cs
- SqlTrackingQuery.cs
- XmlSchemas.cs
- Pens.cs
- CssStyleCollection.cs
- Win32SafeHandles.cs
- UnsafeNativeMethodsPenimc.cs
- NativeCppClassAttribute.cs
- MediaCommands.cs
- GridViewRowPresenter.cs
- AutoGeneratedField.cs
- WorkflowElementDialogWindow.xaml.cs
- StackOverflowException.cs
- AbstractDataSvcMapFileLoader.cs
- HwndTarget.cs
- IdentityHolder.cs
- PinnedBufferMemoryStream.cs
- ContainsRowNumberChecker.cs
- PointAnimationUsingPath.cs
- ContentPlaceHolder.cs
- ImageBrush.cs
- CacheSection.cs
- ListMarkerSourceInfo.cs
- AuthorizationRuleCollection.cs
- AutoResetEvent.cs
- LogicalExpr.cs
- DbDataReader.cs
- Intellisense.cs
- ReferenceService.cs
- AsymmetricKeyExchangeDeformatter.cs
- TranslateTransform.cs
- MediaTimeline.cs
- TokenBasedSet.cs
- ReaderContextStackData.cs
- ConnectionStringSettingsCollection.cs
- TreeViewHitTestInfo.cs
- Deflater.cs
- AssemblyAttributes.cs
- DesignerActionHeaderItem.cs
- DataGridViewRowEventArgs.cs
- ConstraintManager.cs
- XmlComplianceUtil.cs
- FindCriteriaElement.cs
- XmlSchemaSequence.cs
- Attribute.cs
- PerspectiveCamera.cs
- SimpleMailWebEventProvider.cs
- SiteMapDesignerDataSourceView.cs
- RayHitTestParameters.cs
- MemberAccessException.cs
- TdsParserSessionPool.cs
- HwndHostAutomationPeer.cs
- UIElement.cs
- ColorTranslator.cs
- ParagraphVisual.cs
- TextStore.cs
- ResourceWriter.cs
- DetailsViewDeleteEventArgs.cs
- InkPresenter.cs
- LineGeometry.cs
- DocumentViewerHelper.cs
- XmlSerializerSection.cs
- ContentFileHelper.cs
- BookmarkScopeManager.cs
- ControlAdapter.cs
- ActivityStateQuery.cs
- ClassHandlersStore.cs
- WindowsListViewItem.cs