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
- ArgumentDesigner.xaml.cs
- SamlAudienceRestrictionCondition.cs
- WebBrowserPermission.cs
- wmiprovider.cs
- ResourcesGenerator.cs
- WorkflowDataContext.cs
- LinqDataSourceView.cs
- ApplicationId.cs
- InlinedAggregationOperator.cs
- HtmlInputButton.cs
- NameNode.cs
- Privilege.cs
- SignalGate.cs
- DataGridViewElement.cs
- CacheChildrenQuery.cs
- NullReferenceException.cs
- XPathBinder.cs
- QueryPageSettingsEventArgs.cs
- XmlILConstructAnalyzer.cs
- CheckPair.cs
- TriggerCollection.cs
- ImageEditor.cs
- SqlDataSourceSelectingEventArgs.cs
- ICspAsymmetricAlgorithm.cs
- GeometryDrawing.cs
- AssociationProvider.cs
- FormsAuthenticationUser.cs
- ElementAction.cs
- DefaultBinder.cs
- TextEditorSelection.cs
- PriorityItem.cs
- DecimalSumAggregationOperator.cs
- DPCustomTypeDescriptor.cs
- XmlNotation.cs
- SafeWaitHandle.cs
- DataGridCaption.cs
- HandlerBase.cs
- DataGridCellsPresenter.cs
- BigInt.cs
- ThrowHelper.cs
- COSERVERINFO.cs
- OrderedDictionary.cs
- MonthCalendar.cs
- ProcessModuleCollection.cs
- Converter.cs
- DEREncoding.cs
- CommandConverter.cs
- ImageAnimator.cs
- TemplateBindingExpression.cs
- TabPageDesigner.cs
- serverconfig.cs
- EdmConstants.cs
- StateRuntime.cs
- CachedFontFamily.cs
- SqlColumnizer.cs
- WebPartDisplayModeEventArgs.cs
- DesignerSerializationVisibilityAttribute.cs
- ContentValidator.cs
- NullableDoubleMinMaxAggregationOperator.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TypeLoadException.cs
- BlurBitmapEffect.cs
- ReadWriteObjectLock.cs
- Component.cs
- EntryIndex.cs
- DbDeleteCommandTree.cs
- FileUtil.cs
- DataBindingCollectionConverter.cs
- XamlSerializer.cs
- ImageBrush.cs
- DataServiceProcessingPipelineEventArgs.cs
- DataGridViewImageCell.cs
- StrongNameIdentityPermission.cs
- ArgumentElement.cs
- WebPartVerb.cs
- BamlLocalizableResource.cs
- XmlSchemaObjectCollection.cs
- DesignTimeDataBinding.cs
- ScrollEvent.cs
- Vector3DKeyFrameCollection.cs
- SoapObjectInfo.cs
- PostBackOptions.cs
- DebuggerAttributes.cs
- PageBuildProvider.cs
- Solver.cs
- SizeConverter.cs
- SignedXml.cs
- ImageField.cs
- FixedSOMSemanticBox.cs
- StringOutput.cs
- GradientStopCollection.cs
- JoinCqlBlock.cs
- GroupLabel.cs
- HostingPreferredMapPath.cs
- BindingListCollectionView.cs
- DesignerPainter.cs
- SystemBrushes.cs
- HttpStreamMessage.cs
- XmlCollation.cs
- HttpSocketManager.cs